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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.