Re: hidden type
| From: | Jayme Jeffman Filho | Date: | Tue, 01 Aug 2000 22:57:56 +0000 |
| Subject: | Re: hidden type | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-1691@lists.php.net to get a copy of this message | ||
Every form field is available within the same HTML document. You can get
access to its values through the document.forms[index].field.value
properties or document.forms["formName"].field.value . If you submit a form
of the document and the url changes ( document is unloaded ) you missed the
other forms (not submited) values.
I think the solution should not change the current window URL, it's more
simple.
Another way is to "cascade" your forms calling one from the other and
passing values through the QUERY_STRING. I think it's not an elegant
solution, but if you need to show results of the previous submission to the
user is the solution I know .
I hope this helps.
Jayme.
-----Mensagem original-----
De: ROUSSY, ISABELLE <isabelle.roussy@bell.ca>
Para: php <php-db@lists.php.net>
Data: Terça-feira, 1 de Agosto de 2000 12:07
Assunto: [PHP-DB] hidden type
>Hi,
>
>I want to keep the value of selected <option> in another variable than
>his form. BEcause I need two forms and I need to send the selected
><option> to both submitted page
>
>echo "<p><center><select name=choix size=15>\n";
>
> while ($myrow = mysql_fetch_row($result)){
> echo "<option value=".$myrow[0].">"
> .$myrow[0]."\t".$myrow[1];
> echo "\n";
> }
>echo "</select></center></p>";
>mysql_close($db);
>?>
><p><input type=submit value="Consult Selected application/Entity">
></form>
><form method=POST action=modif.php><INPUT type=hidden name=acronym
>value= >
><input type=submit value="Modify Selected Application/Entity"></form>
>
>how can I send $choix to the other form modif.php?
>
>--
>Isabelle Roussy
>Bell Canada
>IS/IT - Billing Requirements
>700 de La Gauchetiere W B8W2 Montreal Qc H3B 4L1
>Mailto:isabelle.roussy@bell.ca
>Office (514) 391-7939 Fax (514) 393-8162
>
>--
>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
>