[PHP-DB] $HTTP_GET_VARS From: bryan (bryan <email protected>)
Date: 11/21/00

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>&nbsp;";

                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 <email protected>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>