Passing text info using $PHP_SELF

From: Date: Sun, 15 Dec 2002 19:23:58 +0000
Subject: Passing text info using $PHP_SELF
Groups: php.general 
Request: Send a blank email to php-general+get-128344@lists.php.net to get a copy of this message
I am using PHP and MySql and wanted to know if it possible to pass the value inserted in a text box back to the page using PHP_SELF. Bellow is the snipped of code. The part that is not working is &q=input. Any ideas? Thanks. while($query_data = mysql_fetch_array($result)) { $id = $query_data ["q_id"]; $q = $query_data ["question"]; $a = $query_data ["answer"]; echo "<TR>\n"; echo "<TD WIDTH=\"5%\" ALIGN=\"CENTER\">$id</TD>\n"; echo "<TD WIDTH=\"70%\" ALIGN=\"CENTER\">$q</TD>\n"; echo "<TD WIDTH=\"15%\" ALIGN=\"CENTER\"><input type=\"text\" name=\"textfield\" value=$a></TD>\n"; echo "<TD WIDTH=\"10%\" ALIGN=\"CENTER\"> <form name=\"update\" method=\"post\" action=\"$PHP_SELF?action=change&id=$id&q=input\"> <input type=\"submit\" name=\"input\" value=\"Update\">

« previous php.general (#128344) next »