Solomon Solomon - 4 months ago 12
PHP Question

Fill a form on other website from my website

The following address is of a form :
https://webservices.ignou.ac.in/GradecardM/

This form is asp.net driven and its method is set to post.

I need to fill and submit this form by using my website which is programmed in php. To carry out the operation, I created a form but it is not working. When I fill and submit my form it just open the link mentioned above instead of return result of the form.

The code of my form is mention below :

<!DOCTYPE html>
<html>
<head>
<title>Grade Card :: BCA</title>
</head>
<body>
<form method="post" action="https://webservices.ignou.ac.in/GradecardM/Result.asp">
<select name='Program'>
<option value=''>---Select Program---</option>
<option value='BCA'>BCA</option>
<option value='MCA'>MCA</option>
<option value='MP'>MP</option>
<option value='MPB'>MPB</option>
</select>
Enter Enrolment Number: <input type=text name=eno maxlength=9 size=9>
<input type="submit" value="submit" name="submit">
</body>
</html>


How to fix the problem?

Answer

Or you can use this code

<!DOCTYPE html>
<html>
<head>
<title>Grade Card :: BCA</title>
</head>
<body>
<form method="post" action="https://webservices.ignou.ac.in/GradecardM/Result.asp">
<select name='Program'>
<option value=''>---Select Program---</option>
<option value='BCA'>BCA</option>
<option value='MCA'>MCA</option>
<option value='MP'>MP</option>
<option value='MPB'>MPB</option>
</select>
Enter Enrolment Number: <input type=text name=eno maxlength=9 size=9>
<input type=hidden value='OK' name=hidden_submit>
<input type="submit"      value="submit" name="submit">
</body>
</html>

You missing hidden field xD