By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,854 Members | 856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,854 IT Pros & Developers. It's quick & easy.

post values from html form radio buttons

tolkienarda
100+
P: 316
hi all

i am reciving several $_POST variables from a form on an html page and i was curious if in my
if (isset($_POST['variablefromhtml']))
statement is using the id or the name of the radio button.
if the name value is used and i have 9 radio buttons int the same form how do i go about determining which value i am getting. cause the php script will redirect either delete entries from a mysql table or redirect me to a page.
Jan 18 '07 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
hi all

i am reciving several $_POST variables from a form on an html page and i was curious if in my
if (isset($_POST['variablefromhtml']))
statement is using the id or the name of the radio button.
if the name value is used and i have 9 radio buttons int the same form how do i go about determining which value i am getting. cause the php script will redirect either delete entries from a mysql table or redirect me to a page.
In the $_POST array you find the name of the HTML <input> statement as the entry's key and the value of that statement as the entry's value. So for buttons you'll get (of course) 1 name and the value of the particular button clicked.

Ronald :cool:
Jan 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.