Forum Moderators: open
I'm not sure what my http request would be.
The pages form is basically:-
<FORM action="index.php" method="POST">
and two edit boxes (called "username" and "password").
So I need to build a string that represents the http string sent to the server on clicking the button.
I'm guessing it will be something along the lines of:-
[domain.com...]
But I'm not sure exactly how forms work in HTTP (the above example didn't work).
Thanks,
TJ
So if you use php to parse the result you should use either of both methods:
for POST forms (/index.php):
$username=$HTTP_POST_VARS{'username'};
$password=$HTTP_POST_VARS{'password'} for GET forms (/index.php?username=tj&password=WebmasterWorld):
$username=$HTTP_GET_VARS{'username'};
$password=$HTTP_GET_VARS{'password'} HTH
<Edit>It's ok - I worked it out. I had missed a hidden field on the form..... my original idea of :-
[domain.com...]
was in fact correct, I had just missed putting in the hidden text field as a variable</Edit>
TJ