Re: Help - sending variable(s)

From: Date: Thu, 10 Jan 2002 14:12:41 +0000
Subject: Re: Help - sending variable(s)
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-80029@lists.php.net to get a copy of this message
On Friday 11 January 2002 00:50, Dani wrote: > Hi Jason! > > thanks for your email. > > I have tried > > > http://www.mywebsite.com/mypage.php?myvariable1=value1&myvariable2=value2 > > and adding this into my form > > <form = "form1" method = "post" action ="<?php echo > "$PHP_SELF?myvariable1=$myvariable1&myvariable2=$myvariable2"; ?> "> > > <input type = "text" name="myvariable1" value=""> > > but I still get some error like this ====> The specified CGI application > misbehaved by not returning a complete set of HTTP headers. The headers it > did return are: I'm confused at what you're trying to do here. In your original post you wanted to pass variables using the URL. But now you're combining it with a form! If you're using a form then: <form = "form1" method = "post"> <input type = "text" name="myvariable1" value="<? echo $myvariable1 ?>"> </form> would suffice. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Evil is that which one believes of others. It is a sin to believe evil of others, but it is seldom a mistake. -- H.L. Mencken */

« previous php.general (#80029) next »