Retrive the value of the Radipo Button and the List box

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Retrive the value of the Radipo Button and the List box

Post by Kingo »

I'm trying to retrive the value of the Radio BUtton Selected.

Code: Select all

<input type="radio" name="radiobutton" ID="Radio1" value="NA" >
      <font size="2" face="Arial, Helvetica, sans-serif">New Account 
      <input type="radio" name="radiobutton" ID="Radio2" value="RA">
      Repair Account 

 <input type="text" name="fname" ID="Text1">
The php file has this code

Code: Select all

<?php 
$Acccount = $_POST["radiobutton"];
$First = $_POST["fname"];
echo "Account NAme is:".$Account;
echo "First Name is:".$First;
I'm having problem retrieving the value of the radio button. And how can i retrieve the value of an item from a list box.

Any help is appreciated
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Kingo
Forum Contributor
Posts: 146
Joined: Thu Jun 03, 2004 9:38 am

Post by Kingo »

can any opne help with this one. I was not able to follow the link. DO i need to embed PHP is HTML for radio and select boxes?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

moving to client side.
Post Reply