Reply to Radio button/Checkbox value passing

Your name:

Reply:


Posted by Jerim79 on 12/08/06 16:12

I have a simple 3 page registration form. One form, one "data
validation" script and one "insert into database" script. The customer
bounces back and forth from the form to the verification script until
the data is all correct. (When I say bounces, I mean logically. All the
customer ever sees is the registration form, plus or minus error
messages.)

The problem I am having, is that if verification fails, the customer is
redirected to the form. I am able to pass the input values from the
"data validation" script back to the registration form using this
method:
<input id="Name" name="Name" type="text" value="<?php echo $Name ?>>

It works well, but I don't know how to pass the variable of a radio
button or check box back. I remember in javascript and other similar
languages you could do something like:
checkbox.value=checked

Is there a way to do this in PHP? What I am attempting to do, is make
is so that if the customer chooses YES on a radio button and the form
is submitted,; ifthey are sent back to the form to correct an error,
the radio button YES is still checked. I am not just trying to pass the
variable, but to also make it select the right option when it goes
back.

(Or is this just more of an HTML question, at which point I will ask
elsewhere)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация