»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 03-28-2002, 12:38 PM   #1 (permalink)
Naz
Registered User
 
Join Date: Nov 2001
Location: Florida
Posts: 184
Naz is on a distinguished road
Simple Form

I'm looking for a simple form that works. I can't seem to get this one to work for some reason (beginner). http://www.galleryofgifts.bizhosting.com/Orderform.htm
It half A$$ worked at one time till I messed w/it.
And when it did work all the information was all over the place.
Does any mind sharing their form or do you have a link for complete dummies, I've look all over the web with no luck.

Thanks,
Naz


Naz is offline   Reply With Quote
Old 03-28-2002, 04:44 PM   #2 (permalink)
Registered User
 
Kuasimodem's Avatar
 
Join Date: Oct 2001
Location: Holmen, Wisconsin USA
Posts: 2,130
Kuasimodem is on a distinguished road
Send a message via AIM to Kuasimodem Send a message via Yahoo to Kuasimodem
A guy named Kurt Grigg has a bunch of scripts that he posted for free use.

Check it out

Second column, about 3/4 of the way down, "Forms".
Kuasimodem is offline   Reply With Quote
Old 03-29-2002, 04:47 PM   #3 (permalink)
Naz
Registered User
 
Join Date: Nov 2001
Location: Florida
Posts: 184
Naz is on a distinguished road
cool site, thanks
Naz is offline   Reply With Quote
Old 03-29-2002, 05:18 PM   #4 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Alberta, Canada
Posts: 546
^hyd^ is on a distinguished road
what do you mean it isn't working? perhaps it's a problem with the cgi script its sent to?? what is it that isn't working? Will it not even submit now??

one thing I did notice after looking at the code breifly, I believe this will cause problems:
Code:
<INPUT NAME="email address" id=email" TYPE="TEXT" SIZE="30" MAXLENGTH="35">
As far as I can remember, you can't have spaces in a NAME property, so you might want to change NAME="email address" to something like NAME="email_address". Same goes for the "First Name", "Last Name", and "Zip Code" input tags, they all have spaces in the name properties.

Pretty sure for the VALUE property you can have spaces, but NAME properties can't. Reason being is that the NAME property is commonly used to access the VALUE, in both server side code and client side code. So, in javascript, document.forms(0).Last Name just won't work!

Although, values are also sometimes accessed by indexes, so it might depend on how the cgi script is doing it. Personally, I'd start by makes those few changes, then have another try!

Cheers and good luck!
^hyd^ is offline   Reply With Quote
Old 03-29-2002, 05:28 PM   #5 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Alberta, Canada
Posts: 546
^hyd^ is on a distinguished road
DOH!! there's more!

You might also notice in the above snippet of code that you are missing a quote on id=email" (need id="email"), or, since that property (id) also cannot have spaces (afaik), you could get away without using quotes at all on it. But, in a value property that perhaps has a space (ex: value="Enter email here.") you will need quotes, due to the space!

more yet!

can you notice the spelling error here?
Code:
<INPUT NAME="First Name" TPYE="TEXT"SIZE="12" MAXLENGTH="20">
Internet Explorer will ignore the error and probably use a default of TEXT anyways, but Nutscrape, err, Netscrape, dang I mean Netscape, will probably crap out on you and possibly other browsers too!!

anyways! Once again, good luck!


hope I didn't confuse you!! heheh
^hyd^ is offline   Reply With Quote
Old 03-29-2002, 06:15 PM   #6 (permalink)
Naz
Registered User
 
Join Date: Nov 2001
Location: Florida
Posts: 184
Naz is on a distinguished road
Wow you made me feel like the beginner I am.
Thanks for all the info but before I got a chance to read it I went with another form I copied off the above link from Kuasimodem. I put it on my site and tried it out and it's doing something funny with an email at the end when I tried to send it.
Check it out and tell me your thoughts.
http://www.galleryofgifts.bizhosting.com/Orderform.htm
Thanks a million,
Naz
Naz is offline   Reply With Quote
Old 03-29-2002, 09:33 PM   #7 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Alberta, Canada
Posts: 546
^hyd^ is on a distinguished road
Looks to me like it's doing a very thorough email validation!
For a valid email it wants a minimum format of: xx@xxx.zz , where x is a letter, number or certain special characters, and z is only letters.

ciao!
^hyd^ is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 03:37 AM.