HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Radio Button in PHP
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
ainoy31



Joined: 25 May 2007
Posts: 5

PostPosted: Wed May 30, 2007 7:35 am     Radio Button in PHP Reply with quote

I have a radio button:
<input type = "radio" name = "id" value = "">

The info that needs to be put into value field is $id. I know that I can not put $id there. If I put 7 there, it works with no problem. I am getting $id value from a database. Any ideas on how to handle this. Much appreciation.

Thx. AM
flann



Joined: 04 May 2007
Posts: 14

PostPosted: Wed May 30, 2007 11:45 am     Reply with quote

[php]
<input type="radio" name="radio" value="<?php echo($id); ?>">
[/php]
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial