Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > simple form question

Reply
Thread Tools

simple form question

 
 
ukrbend
Guest
Posts: n/a
 
      01-29-2006
I'm new to using forms and have tried to find an answer to the
following questions through various on-line tutorials but so far no
luck.
Bascially, my questions is this. I want to present a form to the user
of my site but I don't want to make any of the fields mandatory. And
since they are not mandatory I want to be able to fill in default
values for all fields that the user doesn't enter data. But I DO NOT
want to present the default value to the user in any particular field,
only to use that default value once the user hits the submit button.
For example, let's say I have a "description" field. If the user
doesn't enter a description I want the description field to pass a
value of "to be entered later" once the user hits the submit button but
I don't want to actually display "to be entered later" to the user.
Thanks for any help.

ukrbend

 
Reply With Quote
 
 
 
 
Travis Newbury
Guest
Posts: n/a
 
      01-29-2006
ukrbend wrote:
> I'm new to using forms and have tried to find an answer to the
> following questions through various on-line tutorials but so far no
> luck...

You can use javasript to validate the form, but that is probalby ot the
best idea since some people have javascript turned off.

The best way is in the page you send the form to, the server side
script, you check for for responses there. Ig they have entered one,
then use that, if not,then use what ever or default is. The user never
sees it.

 
Reply With Quote
 
 
 
 
Hywel Jenkins
Guest
Posts: n/a
 
      01-29-2006
In article < .com>,
says...
> I'm new to using forms and have tried to find an answer to the
> following questions through various on-line tutorials but so far no
> luck.
> Bascially, my questions is this. I want to present a form to the user
> of my site but I don't want to make any of the fields mandatory. And
> since they are not mandatory I want to be able to fill in default
> values for all fields that the user doesn't enter data. But I DO NOT
> want to present the default value to the user in any particular field,
> only to use that default value once the user hits the submit button.
> For example, let's say I have a "description" field. If the user
> doesn't enter a description I want the description field to pass a
> value of "to be entered later" once the user hits the submit button but
> I don't want to actually display "to be entered later" to the user.
> Thanks for any help.


Get your server-side form handler to deal with this for you.

--

Hywel
http://kibo.org.uk/
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve form field value if form is EncType=multipart/form-dataForm? Li Zhang ASP .Net 4 02-27-2009 01:23 AM
<form>...</form> - how to supress blank space after </form> in IE? rob c Javascript 4 12-30-2005 01:18 PM
Simple Question - Simple Answer? Daniel Frey XML 4 01-12-2005 04:25 PM
Re: Simple Simple question!!! Kevin Spencer ASP .Net 0 06-25-2004 05:25 PM
Re: Simple Simple question!!! ashelley@inlandkwpp.com ASP .Net 0 06-25-2004 04:18 PM



Advertisments