Web Hosting Talk







View Full Version : Is it possible to submit a form from a URL?


SmashedPumpkins
02-18-2010, 08:04 PM
It's easy enough to pre populate a form using a URL, but is it actually possible to submit the form from the URL? For example, the URL may pre populate the form with the users name and email. Normally now the user only needs to press submit. Is there a way to automatically press the submit button with something put into the URL? Thanks

Sc00by22
02-18-2010, 08:09 PM
Most forms set a unique session ID of some sort when you visit the form, so when you hit submit it checks for that ID, and if it doesn't match or isn't there it won't submit the data.

SmashedPumpkins
02-18-2010, 08:11 PM
Most forms set a unique session ID of some sort when you visit the form, so when you hit submit it checks for that ID, and if it doesn't match or isn't there it won't submit the data.

Oh okay that makes sense. I can see how this would easily be misused. It could be very helpful in appropriate circumstances though.

mattle
02-18-2010, 09:16 PM
Assuming you have write permissions on the form page, you could pass any parameter/value pair with GET. Then, you can have a JavaScript function that populates the values and executes the form's submit() method.

Alternatively, if you don't control the source code of the form, then you could always write your own User Agent to perform automatic submissions...

saniilo
02-19-2010, 02:07 AM
Just understand how to submit url in different programs as they vary from one program to another