Options
Visual Web Developer 2008 form submit (PHP)
aueddonline
Member Posts: 611 ■■□□□□□□□□
in Off-Topic
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.
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
-
Optionstiersten Member Posts: 4,505That error appears to come from IIS. You sure your web host supports PHP? Although it would be odd that it is reading .php files if it doesn't.
-
Optionsaueddonline Member Posts: 611 ■■□□□□□□□□That error appears to come from IIS. You sure your web host supports PHP? Although it would be odd that it is reading .php files if it doesn't.
I'm just running this on my laptop at the moment, like previewing the pageWhat's another word for Thesaurus? -
Optionstiersten Member Posts: 4,505aueddonline wrote: »I'm just running this on my laptop at the moment, like previewing the page
-
Optionsaueddonline Member Posts: 611 ■■□□□□□□□□You got IIS and PHP installed in your laptop?
I have, when I installed PHP I specified the web server as IIS CGI and IIS is installedWhat's another word for Thesaurus?