Options

Visual Web Developer 2008 form submit (PHP)

aueddonlineaueddonline Member Posts: 611 ■■□□□□□□□□
Okay so what I want to do is make a form and have the submit button send the post data to a php scipt

Here is what I have from a book exercise

<form method="post" action="hello.php">
What is your first name?
<input name="first_name" type="text" />
<input type="submit" value="submit" />
</form>

Then here's the file hello.php

<?php
echo 'Hello, ' . $_POST . '!';
?>

I get the error The HTTP verb POST used to access path '/WebSite1/hello.php' is not allowed.

when pressing submit, does visual web developer let me do this? or is it a web server error that's letting the whole thig down. I'm just running it from the default web server that comes with the program on the local host.

Once I get it to pass the post to the script I then want to have the script e-mail the data or put it into a database. My webspace doesn't allow for CGI so I need to aviod that too.
What's another word for Thesaurus?

Comments

Sign In or Register to comment.