Hello World...:-)
I´am new to PHP and try to learn this stuff at the moment.
I have installt the PHPDEV4 Package (PHP 4..., Apache, MySQL)
I managed allready a simple HTML Form with a PHP Script to return the introduced data with two diferent files
html +.php.
I´ve tried now to process all in one with the variable $PHP_SELF;
but my Browser gave me ...FORBIDDEN 403
...You are not allowed to acess /< on this Server
--> Apache 1.... localhost at port 80
What can I do?
Please Help a newcomer....
Thanks a million
Regards
Paulo
..> Here is the Code !! (one of them, i guess they wont work at all!)
<?php
if ($HTTP_POST_VARS['action'] == 'submitted') {
print '<pre>';
print_r($HTTP_POST_VARS);
print '<a href="'. $HTTP_SERVER_VARS['PHP_SELF'] .'">De novo</a>';
print '</pre>';
} else {
?>
<form action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" method="post">
Nome: <input type="text" name="personal[name]"><br>
Email: <input type="text" name="personal[email]"><br>
Cerveja: <br>
<select multiple name="beer[]">
<option value="antartica">Antartica</option>
<option value="brahma">Brahma</option>
<option value="skol">Skol</option>
</select><br>
<input type="hidden" name="action" value="submitted">
<input type="submit" name="submit" value="Enviar dados!">
</form>
<?php
}
?>