SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need to merge two sign-up forms together

    I have an ezine with two different editions, a European and North American. I've decided to merge the two forms into one to simplify the sign-up procedure. However, I can't get the thing working

    Here is the code for the two seperate forms, which was created automatically by the excellent Max-eMail. I've tried to merge them with a radio button like:
    Code:
    <input type=radio name="lists[15]" value="1LitNorthAmerica" CHECKED> North American Edition
    <input type=radio name="lists[14]"  value="1LitEurope">European Edition
    but the values in [] are different for the countries, sex, etc. (For some reason the "[14]" and "[15]" stop the radio-button working - can't select between the two)

    Could anybody be so kind as to help me merge the two forms together?

    Here's the code (I haven't listed all the world's countries in the drop-down box to save space):

    Code:
    European form:
    
    <form action="http://130.94.172.64/maxemail/join.php"> 
    
    Name: <input type="text" name="name" value="Your Name"> 
    <br> 
    Email: <input type="text" name="email" value="you@mail.com">
    
    <P>
    Sex:<BR><input value="Male" name="exfields[10]" type=radio name=demo>Male
    <BR><input value="Female" name="exfields[10]" type=radio name=demo>Female
    
    
    <P>Country: <select name="exfields[11]"><option value="Select Country">Select Country
    <option>Afghanistan<option >Albania<option >Algeria</select>
    <font size=1 color=red> *required</font>
    
    <P><input type=hidden name=list value="1LitEurope"><br> <input type="submit" name="submit" value="Join Now!"> </form>
    
    
    --------------------------------
    
    
    
    North American form:
    
    
    <form action="http://130.94.172.64/maxemail/join.php"> 
    Name: <input type="text" name="name" value=""> <br> 
    Email: <input type="text" name="email" value="">
    
    <P>Sex:<BR>
    <input value="Male" name="exfields[9]" type=radio name=demo>Male
    <BR><input value="Female" name="exfields[9]" type=radio name=demo>Female<P>
    
    Country: <select name="exfields[8]"><option value="Select Country">
    
    Select Country</option>
    <option >Afghanistan</option><option >Albania </option><option>Algeria </option>
    </select>
    
    <P><input type=hidden name=list value="1LitNorthAmerica"><br> 
    
    <input type="submit" name="submit" value="Join Now!"> </form>
    Thank you in advance for your help
    Last edited by litmania_com; Aug 23, 2001 at 17:58.
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale

  2. #2
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Could anyone help please :)

    Anyone?
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale

  3. #3
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi nadeem,

    Why are you using arraynamed cells for your radio button names? At best it confuses the browser and reader (me). Name your input fields in the conventional manner -- without square braces. If you are trying to construct the names dynamically simply append the number to the prefix, don't add the square braces.

    Finally, radio buttons of the same set should have the same name. For example:

    <input type='radio' name='sex' value='male'>Male
    <input type='radio' name='sex' value='female'>Female

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still

  4. #4
    SitePoint Zealot litmania_com's Avatar
    Join Date
    Feb 2001
    Location
    London
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Vincent - and thanks for your kind reply!

    I didn't select the awkward arraynamed cells for the radio button names: they were created automatically by my mailing list script, Max-eMail.

    Anyway, I will try to rename them and see if the program continues to work
    Nadeem Azam
    Litmania.com Inc.

    Free promotion - check out this 1:1 banner exchange
    Dot com domains - the world's most prestigious domain names for sale


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •