automatically fill out form

Posted on 2007-07-20
Last Modified: 2013-12-12
I have a warranty site I go to and I have select a drop down for country and put in a part number and serial number whenever I want to lookup the warranty.  Is there a way that I can automatically fill in these when I go to the site.  I have the data in a database on my own php driven website, so I can put links for each one that point to this warratny page.  They do not use variables in the url, but I'm sure there is some script that is able to do this.  
Question by:thur6165
    LVL 24

    Accepted Solution

    This would largely depend on the script that generates the form on the remote end. If the form allows for error checking, perhaps the script is looking for some preset values to insert into the fields when an initial submit fails. If so, you can use this to your advantage.

    For example, if the form has fields named 'country', 'partNumber', and 'serialNumber', you can create your own page like this:

    <form action="<location of remote script>" method="post">
    <input type="text" name="country" value="<yourCountry>" /><br />
    <input type="text" name="partNumber" value="<yourPartNumber>" /><br />
    <input type="text" name="serialNumber" value="<yourSerialNumber>" /><br />
    <input type="submit" value="Submit" />

    You will need to examine the remote form to determine where it posts (the value of 'action=' in the form), and use an identical location in your script (you may need to prefix the name of the remote site if it does not appear in the remote form).

    This method may or may not work, depending on how the remote script is set up. If it does not, you can create a GreaseMonkey add-on ( to automatically fill out the form for you, or utilize one of the many automatical-form-fillers available on the web.
    LVL 8

    Author Comment

    OMG,  that actually worked.

    LVL 24

    Expert Comment

    Great! Glad to hear it. Now on your end you can just setup a way to automatically fill out your form, and submit as needed.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! How to Know You are Making a Difference at EE In August, 2013, one …
    Developer tools in browsers have been around for a while, yet they are still heavily underused by developers. Developers still fix html or CSS then refresh page to see effect, or they put alert or debugger in JavaScript and then try again and again …
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now