$HTTP_GET_VARS
| From: | bryan | Date: | Tue, 21 Nov 2000 15:46:00 +0000 |
| Subject: | $HTTP_GET_VARS | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-4608@lists.php.net to get a copy of this message | ||
Here is what I have.....
How do I pass what I receive in $HTTP_GET_VARS to another page, called
delete.php? I am using this as a pop-up window to delete the current
record. I guess I could do it by id, too, but each "rq" is unique.
Thanks
Bryan Fitch-
*************************************************************************
<HTML>
<?php
$passedsubject = $HTTP_GET_VARS["rq"];
$dbcnx = mysql_connect('localhost:','user','pass') or
die("Errors Occurred");
mysql_select_db ("database");
$tsql = "SELECT * FROM rq WHERE rq='$passedsubject'";
$tresult = mysql_query($tsql, $dbcnx) or die ("doot dee doot");
$numrows = mysql_num_rows( $tresult );
while ($trow = mysql_fetch_array($tresult)) {
echo "<BR><B>Description:</B> ";
echo $trow['rq'];
}
?>
<BR>
<FORM NAME="delete" METHOD=POST ACTION="deleteme.php">
<INPUT TYPE=SUBMIT VALUE=Delete>
</FORM>
***************************************************************************
Bryan Fitch
Programmer
Concept-Factory
http://www.concept-factory.com
bryan@concept-factory.com