PDA

View Full Version : new on php-need help



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

Richard
March 3rd, 2006, 12:43
Your host does not Support PHP. Who hosts you?

DarkBlood
March 3rd, 2006, 14:00
hosting-shack is correct, or the php file is incorrectly posting it due to server configurations. (Example: EasyPHP is coded differently, and thus gives you more errors than most servers do.)

mitsaklass
March 4th, 2006, 07:03
well, my host does support php. it is a greek host (http://tre.la)
also i tried my page at tripod. neither worked.
so?

guys,for a week or so, i am trying to publish a simple page with a form,using php as you said.i found some php files,i opened with notepad so i can change the required values and that's all.
still problem.

i hope you can help.
tnx

webadpro
March 4th, 2006, 13:46
Um, everything seems to be alright.

Must be your host.

Have a look here:

http://www.thesitewizard.com/archive/feedbackphp.shtml

Regards,
Pat

mitsaklass
March 5th, 2006, 09:03
hmmm.nice site, but i have to search it...
damned php.