mitsaklass
March 3rd, 2006, 09:22
hello ppl.i found a simple php script for forms.
html code
<form action="action.php" method="POST">
Your name: <input type="text" name="name" />
Your age: <input type="text" name="age" />
<input type="submit">
</form>
and
Hi <?php echo $_POST["name"]; ?>.
You are <?php echo $_POST["age"]; ?> years old.
now, when i upload on a server the 2 files, the html and php file and i press the submit button instead of getting the message "Hi "name".
You are ... years old." i get a pop up window which tells me if i want to open or save the php file!!!
what's the wrong???
i am really new to all this stuff.
tnx
html code
<form action="action.php" method="POST">
Your name: <input type="text" name="name" />
Your age: <input type="text" name="age" />
<input type="submit">
</form>
and
Hi <?php echo $_POST["name"]; ?>.
You are <?php echo $_POST["age"]; ?> years old.
now, when i upload on a server the 2 files, the html and php file and i press the submit button instead of getting the message "Hi "name".
You are ... years old." i get a pop up window which tells me if i want to open or save the php file!!!
what's the wrong???
i am really new to all this stuff.
tnx