Old 14-07-2004, 10:44   #1 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,215
form not submitting

anyone? the submit button sends a value but none of the rest does.

it validates but i'm not too hot in labels and their effect on the working of the form.

Code:
<form id="registrationform" method="post" action="/cgi-bin/formTest.pl"> <p> <label for="firstname">Firstname: <input type="text" id="firstname" /> </label> </p> <p><label for="surname">Surname: <input type="text" id="surname" /></label></p> <p> <label for="preferedname">Preferred Name: <input type="text" id="preferedname" /> </label> </p> <p><label for="email">Email: <input type="text" id="email" /></label></p> <p> <label for="password">Password: <input type="text" id="password" /> </label> </p> <p><label for="contactnumber">Contact number: <input type="text" id="contactnumber" /></label></p> <h3>Optional Information</h3> <p><label for="country">Country: <input type="text" id="country" tabindex="7" /></label></p> <p> <label for="preferedlanguage">Preferred language: <input type="text" id="preferedlanguage" /> </label> </p> <p> <label for="age">Age range: <select id="age"> <option value="">Select</option> <option value="Under 16">-16</option> <option value="17-21">17-21</option> <option value="22-28">22-28</option> <option value="29-35">29-35</option> <option value="35+">35+</option> </select> </label> </p> <p><input type="submit" class="submit" name="Submit" value="Submit" /></p> </form>

beuller?
  Reply With Quote
Old 14-07-2004, 10:56   #2 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,642
The label is a user thing. It doesn't effect the workings of the form if used correctly - and you said it validates.
  Reply With Quote
Old 14-07-2004, 10:58   #3 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,238
you have to have name's as well as id's, ie

Code:
<input type="text" name="firstname" id="firstname" />
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 14-07-2004, 11:00   #4 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,215
ok. lemme try just id's.
  Reply With Quote
Old 14-07-2004, 11:02   #5 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,215
hang on, i can't read proper today (tuesday night treats ).

will add names now. for some reason i thought names were invalid.
  Reply With Quote
Old 14-07-2004, 11:02   #6 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,642
You need the id's for the labels. Smallbeer is saying that the form needs names.
  Reply With Quote
Old 14-07-2004, 11:05   #7 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,215
cheers beers. should have noticed - the submit had a name.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8