Date: 11/21/00
- Next message: Roberto Sartor: "[PHP-DB] R: [PHP-DB] Re:[PHP-DB] opening webpage"
- Previous message: Vova: "[PHP-DB] Please help me"
- In reply to: bryan: "[PHP-DB] $HTTP_GET_VARS"
- Next in thread: Juergen Hall: "[PHP-DB] SQL problem with LONG Fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>>
Para: <php-db <email protected>>
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> ";
>
> 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>
>
-- 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>
- Next message: Roberto Sartor: "[PHP-DB] R: [PHP-DB] Re:[PHP-DB] opening webpage"
- Previous message: Vova: "[PHP-DB] Please help me"
- In reply to: bryan: "[PHP-DB] $HTTP_GET_VARS"
- Next in thread: Juergen Hall: "[PHP-DB] SQL problem with LONG Fields"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

