Re: $HTTP_GET_VARS

From: Date: Tue, 21 Nov 2000 16:26:08 +0000
Subject: Re: $HTTP_GET_VARS
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4610@lists.php.net to get a copy of this message
I think it's not the case, you are using the post method in the form, so HTTP_POST_VARS, and and you dont need pass form fields values when using the post method, just use them in the deleteme.php script. The value of field Field1 can be accessed through $Field1 . HTH Jayme. http://www.conex.com.br/jjeffman -----Mensagem Original----- De: bryan <bryan@concept-factory.com> Para: <php-db@lists.php.net> Enviada em: terça-feira, 21 de novembro de 2000 13:46 Assunto: [PHP-DB] $HTTP_GET_VARS > 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@concept-factory.com > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#4610) next »