Experts all..
I am using win98+php4+apache (latest)
my following script doesnt return any variables requested from form.
<?php
if (isset($_POST['action']) && $_POST['action'] == 'submitted') {
print '<pre>';
print_r($_POST);
print '<a href="'. $_SERVER['PHP_SELF'] .'">Please try again</a>';
print '</pre>';
} else {
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
Name: <input type="text" name="personal[name]"><br>
Email: <input type="text" name="personal[email]"><br>
Beer: <br>
<select multiple name="beer[]">
<option value="warthog">Warthog</option>
<option value="guinness">Guinness</option>
<option value="stuttgarter">Stuttgarter Schwabenbräu</option>
</select><br>
<input type="hidden" name="action" value="submitted">
<input type="submit" name="submit" value="submit me!">
</form>
<?php
}
?>
Please suggest me where I am wrong..
Newbie..Need Help Please...
Moderator: General Moderators
i just tried the script and it returned the info, and i am on same stetup as you, win98, apache, php
here is what it returned
Mark
here is what it returned
Code: Select all
Array
(
їpersonal] => Array
(
їname] => mark
їemail] => blah
)
їbeer] => Array
(
ї0] => warthog
)
їaction] => submitted
їsubmit] => submit me!
)
Please try againworking fine !
Hi buddies...
It was due to apache server.
Though its freeware and popular I have removed that and installed badblue server..very ease to use..
I suggest to use the same server....it setups everything for you just u have to code...
thanks for your co-op
Prams
It was due to apache server.
Though its freeware and popular I have removed that and installed badblue server..very ease to use..
I suggest to use the same server....it setups everything for you just u have to code...
thanks for your co-op
Prams
-
Cruzado_Mainfrm
- Forum Contributor
- Posts: 346
- Joined: Sun Jun 15, 2003 11:22 pm
- Location: Miami, FL