Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Feb 2004
    Location
    Malaysia
    Posts
    175
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy radio button value as a path?

    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 :



    PHP Code:

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


    or



    PHP Code:

    <? $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
    Warm Regards,
    Mivec

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It's weird that the second one didn't work... but try something like this for kicks:

    PHP Code:
    <? 
     $path 
    "img/picTemplates/R/bluepic.jpg ";  
     echo (
    "<INPUT type='radio' value='".$path."' name='scheme'>"); 
    ?>
    And see how that works out..

    Sadiq.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •