Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1

Thread: HTML Form

  1. #1
    Junior Member
    Join Date
    Oct 2010
    Posts
    11
    Member #
    24384
    Hi,
    I'm trying to create a form with two boxes for an insurance site. I want that in the first box the user will select the type of insurance and in the second box type the zip code. For every insurance type, the surfer will be directed to a different URL.
    This is the code that I have, but of course that it doesn't work:

    Code:
    <form name="mainform">
    
            <tr>
    
                <td colspan="2">
    
                    <select name="src" id="type">
    
                        <option value="http://www.mysite.com/results-car.html">Auto</option>
    
                        <option value="http://www.mysite.com/results-home.html">Home</option>
    
                        <option value="http://www.mysite.com/results-life.html">Life</option>
    
                        <option value="http://www.mysite.com/results-health...Health</option>
    
                        <option value="http://www.mysite.com/results-motorc...rcycle</option>
    
                        <option value="http://www.mysite.com/results-busine...siness</option>
    
                    </select>
    
                </td>
    
                <input type="hidden" name="source" value="google" />
    
            <tr>
    
                <td><input type="text" name="zipcode" maxlength="5" id="zip" />
    
    </td>
    
            </tr>
    
            <tr>
    
                <td colspan="2" style="text-align:center;"><input type="submit" id="button" value="Go"/></td>
    
            </tr>
    
        </table>
    
    </form>
    For example, for auto insurance the URL should be:
    HTML Code:
    http://www.mysite.com/results-car.html?zipcode=10001&source=google
    Thanks!!

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:24 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com