Hoping for some help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • kane_bond@yahoo.com.au

    Hoping for some help

    Hi,

    Im not all that great with PHP, but this should be a simple one

    I want to inster a URL paramater into the default value of a field of a
    form

    eg.

    /test.php?MYVALU E=hello


    then i want:

    <input name="Name" type="text" id="Name" value=MYVALUE size="40">

    I know the above wont work, but how do I get to make MYVALUE = the
    default value of that forms field?

    Thanks heaps for your help

    Kind Regards,

    Kane

  • Smitro

    #2
    Re: Hoping for some help

    kane_bond@yahoo .com.au wrote:[color=blue]
    > Hi,
    >
    > Im not all that great with PHP, but this should be a simple one
    >
    > I want to inster a URL paramater into the default value of a field of a
    > form
    >
    > eg.
    >
    > /test.php?MYVALU E=hello
    >
    >
    > then i want:
    >
    > <input name="Name" type="text" id="Name" value=MYVALUE size="40">
    >
    > I know the above wont work, but how do I get to make MYVALUE = the
    > default value of that forms field?
    >
    > Thanks heaps for your help
    >
    > Kind Regards,
    >
    > Kane
    >[/color]

    <input name="Name" type="text" id="Name" value="<? echo $_GET[MYVALUE]
    ?>" size="40">


    HTH

    Comment

    • kane_bond@yahoo.com.au

      #3
      Re: Hoping for some help

      Thankyou so much!

      Comment

      Working...