Jump to content

FOrms again


owen

Recommended Posts

HiI am trying to set up a subscription button on website, The host server seems to have problems with the post method and sends a 405 method dissallowed message. I have tried using the get method but i'm still missing a trick somewhere because it's not working.Here is the html script<FORM METHOD="get" ACTION="http://www.madrugada-parties.co.uk/sendmail.php"> <INPUT Name="email" type="text" value="Email address" size="30"/> <INPUT TYPE="submit" class="submitbutton" VALUE="Join the Onk" alt="subscribe to mailing list" /> </FORM>and here's the php<? $email = $_GET['email'] ; mail( "owen@owenrimington.co.uk", "ONK", "From: $email" ); header( "Location: http://www.madrugada-parties.co.uk/thankyou.html" ); ?>Please help, thanks alot :)

Link to comment
Share on other sites

Using the post method is best when sending information with forms. Instead of changing the method to a less efficient one (for forms), change the host server to a more efficient one.

HiI am trying to set up a subscription button on website, The host server seems to have problems with the post method and sends a 405 method dissallowed message. I have tried using the get method but i'm still missing a trick somewhere because it's not working.Please help, thanks alot :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...