...

View Full Version : radio button value as a path?



mivec
03-24-2004, 08:46 AM
hi all,

u see...i need to put the value as a path.what i mean is that u know..radio buttons has it's value right? so can i put it something like :






<INPUT type=radio value="img/picTemplates/R/bluepic.jpg "
name=scheme>





or






<? $path = "img/picTemplates/R/bluepic.jpg ";
echo ("<INPUT type=radio value=$path
name=scheme>"); ?>





i am trying to insert that radio button value (and it needs to be a path like what u see) to the database. i have tried the 2nd one....but what went into the DB was $path and not img/picTemplates/R/bluepic.jpg .

pls help....thank you...kinda lost here

sad69
03-24-2004, 06:00 PM
It's weird that the second one didn't work... but try something like this for kicks:



<?
$path = "img/picTemplates/R/bluepic.jpg ";
echo ("<INPUT type='radio' value='".$path."' name='scheme'>");
?>


And see how that works out..

Sadiq.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum