Hi,
I just added a contact page to a site and when I click "submit" I get form2mail.php instead of thankyou.html.
Can anyone advise me what I'm missing? I'm using Dreamweaver CS4 if that makes a difference and I have uploaded blockip.txt, form2mail.php and thankyou.html
Thanks in advance,
DC
form2mail.php instead of thankyou.html
Started by daraclare, Feb 10 2010 06:06 AM
9 replies to this topic
#1
Posted 10 February 2010 - 06:06 AM
|
|
|
#2
Posted 10 February 2010 - 07:08 AM
That depends a LOT on your script, I would assume thankyou.html is completely static and form2mail.php would process the request making sure it's not a blocked IP etc then redirect you to thankyou.html
can you post up some code?
can you post up some code?
#3
Posted 10 February 2010 - 07:51 AM
No I can't post script. The admin won't let me, it keeps saying:
"To be able to post links or images your post count must be 10 or greater. You currently have 4 posts.
Please remove links from your message, then you will be able to submit your post."
Is there another way to upload something here?
Thanks for your help
"To be able to post links or images your post count must be 10 or greater. You currently have 4 posts.
Please remove links from your message, then you will be able to submit your post."
Is there another way to upload something here?
Thanks for your help
#4
Posted 10 February 2010 - 07:52 AM
You cant post the source code? I think you can attach files, right? Why not zip and do that?
#5
Posted 10 February 2010 - 08:38 AM
Have you got a apache and PHP installed on your development PC?
If not, then you need to upload to a server to test your PHP code.
Also, emailing wont work unless you have setup your PHP email settings.
If not, then you need to upload to a server to test your PHP code.
Also, emailing wont work unless you have setup your PHP email settings.
#6
Posted 10 February 2010 - 08:38 AM
It won't let me do that either! just tried with php, zip, txt, doc and pdf!
#7
Posted 10 February 2010 - 08:40 AM
I have apache set up and my PHP email settings
Sorry I can't upload the code to show u!
Sorry I can't upload the code to show u!
#8
Posted 10 February 2010 - 08:43 AM
O, cool. ok. what do you mean by "I get form2mail.php" ?
That is what is ment to happen, isn't it. Most form2mail scripts use the forms action attribute to post field values to php which emails the data and then redirects to a "thankyou" page.
Did you download this script from the net? eg:
http://scripts.rings...m2mail.php.html
That is what is ment to happen, isn't it. Most form2mail scripts use the forms action attribute to post field values to php which emails the data and then redirects to a "thankyou" page.
Did you download this script from the net? eg:
http://scripts.rings...m2mail.php.html
#9
Posted 10 February 2010 - 09:40 AM
Thanks folks All sorted now but thanks for your help!
#10
Posted 10 February 2010 - 10:45 AM
By the way it was just a typo on the script in the line containing "thankyou.html" Silly mistake I should have seen but your help is much appreciated!
DC
DC


Sign In
Create Account


Back to top










