Hi there.
There is a login form on the page index.php
<form method="POST" action="login.php">
<table border="0" cellpadding="4" cellspacing="1" class="w12">
<tr>
<td>Login:</td>
<td>
<input type="text" name="username" class="b12">
</td>
</tr>
<tr>
<td>Password:</td>
<td>
<input type="password" name="password" class="b12">
</td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" value="Login">
</td>
</tr>
</table>
</form>
Open in new window
When the form on index.php is posted, it generates session id on the same page and then passes login data to login.php.
How do I programmatically post the login data via php, and then get the source code of the page called sourceineed.php ?
Thank you.