Jump to content

Pre-Fill out a PHP form...??


markvaughn2006

Recommended Posts

This is for work actually (geek squad). We have to fill out this online php form at work over and over again to set up these new laptops, we log on to this website and have to select all this stuff. I was wondering if there is a way that I could set up a php page/code on one of my websites so that when you went to it, it would redirect you to the geeksquad website/form AND fill out the page with the info?? Possible? if so, how?? Thank you guys so much, you have been extremely beneficial and helpful!!!!

Link to comment
https://forums.phpfreaks.com/topic/180417-pre-fill-out-a-php-form/
Share on other sites

Well, I'd say it may be possible, but it depends on how the Geek Squad form's error checking works, and if you have to be logged in to use it.  Being something that belongs to a large corporation however, I'd be wary of if this is legal or not.

 

Anyway, you could use cURL to post the values to the form just as if you were to fill it out manually.  If you were to leave a required field out of the automation and the form's error checking is done server side, it should show you the form again with the fields filled out + an error for the required field.

 

If you are interested in alternatives, and you use FireFox, check out the Greasemonkey extension.  You could easily do this with JavaScript and not have to worry about fooling with a much more complicated PHP version.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.