owen Posted March 2, 2006 Share Posted March 2, 2006 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 More sharing options...
homoeopathy80 Posted March 2, 2006 Share Posted March 2, 2006 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 <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now