Assign variable in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shashidhar123
    New Member
    • Oct 2011
    • 1

    Assign variable in php

    plz someone help me to write this code
    Code:
    <?php
    ....
    $name="some name";
    ...
    <input id=\"a\" type=\"checkbox\" name=\"php_var\" value=\"1\" />";
    ..
    ..
    ?>
    I want to assign $name to the name field in the above statement. i,e in the placer of php_var
    Last edited by Dormilich; Oct 17 '11, 05:11 AM. Reason: please use [CODE] [/CODE] tags when posting code
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Put $name where php_var is.

    Comment

    Working...