Re: FORMs (HELP) --- PHP Gurus (Please HELP)

From: Date: Wed, 24 Oct 2001 19:17:15 +0000
Subject: Re: FORMs (HELP) --- PHP Gurus (Please HELP)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72150@lists.php.net to get a copy of this message
On Mié 24 Oct 2001 15:59, you wrote: > Hi, > > How can be possible to call other functions (that have a html pages) from a > first function that also have a html with a form and pass all html > variables without losing them? > > I've a problem that from a html form I'm losing all html variables and this > is happening because this form is located in the 3th function (one inside > another)... > > If you know a better way to deal with this... I'm interested to learn... > Thanks for all. > > Simple example that may work: > > file name: xyz.php > > > > function display($ref) { > printf('The REF have %s",$ref); > } > > function query() { > echo('<FORM ENCTYPE="multipart/form-data" NAME="addimovel" > METHOD=POST > ACTION="xyz.php?pg=1&ref=$ref">); Take out the &ref=$ref from the action! ref will be posted as the method says. Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------

« previous php.general (#72150) next »