Re: Help - sending variable(s)
| From: | Jason Wong | Date: | Thu, 10 Jan 2002 14:53:49 +0000 |
| Subject: | Re: Help - sending variable(s) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80034@lists.php.net to get a copy of this message | ||
On Friday 11 January 2002 01:11, Dani wrote:
First of all, please keep the discussion on the list :)
> actually I'm trying to put a value from user input and then send the
> variable and the value to the same page so that I can call other php
> script.
>
> Does this make any sense?
If I understand you correctly, yes :)
> > <form = "form1" method = "post">
> > <input type = "text" name="myvariable1" value="<? echo
> > $myvariable1
> > ?>"> </form>
> >
> > would suffice.
Using this would do what you want. Extending it:
------------------------------------------------------------
<form = "form1" method = "post">
<input type="text" name="myvar1" value="<? echo $myvar1
?>">
</form>
<? echo "The value you entered is $myvar1"; ?>
------------------------------------------------------------
hth
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
OKAY!! Turn on the sound ONLY for TRYNEL CARPETING, FULLY-EQUIPPED
R.V.'S and FLOATATION SYSTEMS!!
*/