Re: [php] passing variables doesn't work
| From: | Max Belushkin | Date: | Wed, 25 Oct 2006 08:19:24 +0000 |
| Subject: | Re: [php] passing variables doesn't work | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243605@lists.php.net to get a copy of this message | ||
Whatever form information you want to pass has to be part of the form.
WILLEMS Wim (BMB) wrote: <select name=database size=1>In the second script, the value of this will be in $_POST["database"].
<?php $wim = 5; /* this is added to test the passing of the variables - doesn't work either */$wim isn't part of your form - it will /not/ get saved into the next PHP script. You can handle it through input type hidden elements in the form, or through sessions, for example, depending on what you want to do with it.