writing field data into the url?
hi, im trying to figure how i can put a forms field data into the url to have it process rather than putting the data into each field one by one.
talkphps login page
its action is login.php?do=login
username field is called: vb_login_username
password field is called: vb_login_password
submit button has no name but by default it should be called query and its value is "Log in"
so instead of manually logging in
wouldnt i do something like this?
thanks in advance
The <form> element have a method attribute, where you can put "get" or "post". When you submit a form with "get" there the variables will appear in url but with "post" attributes will be sent to server in header as attachment.
In serverside php is making two arrays one is $_POST and the other is $_GET. There is also $_REQUEST which is combined from $_POST, $_GET and $_COOKIE. If vbulletin gets login data from $_REQUEST your url should work, but if it uses $_POST you just can't do that.
Try FF addon `live HTTP headers` to see what data are you really sending to the server.
The data that vBulletin sends along when logging in is (comments in parentheses):
As far as I'm aware, vB looks at the POST data only for logging in (so an equivalent GET won't work).
You should NEVER pass information like passwords over $_GET because it is insecure. All someone has to do is look at your browsing history to figure out your password. Use cURL to submit $_POST data.
|All times are GMT. The time now is 11:43 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0