Closed Thread
Results 1 to 10 of 10

Thread: form2mail.php instead of thankyou.html

  1. #1
    daraclare is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    43
    Rep Power
    0

    form2mail.php instead of thankyou.html

    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

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: form2mail.php instead of thankyou.html

    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?

  4. #3
    daraclare is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    43
    Rep Power
    0

    Re: form2mail.php instead of thankyou.html

    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

  5. #4
    Join Date
    Apr 2009
    Location
    Trapped in my own little world.
    Posts
    2,487
    Rep Power
    33

    Re: form2mail.php instead of thankyou.html

    You cant post the source code? I think you can attach files, right? Why not zip and do that?

  6. #5
    alienkinetics's Avatar
    alienkinetics is offline Programmer
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    154
    Rep Power
    0

    Re: form2mail.php instead of thankyou.html

    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.

  7. #6
    daraclare is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    43
    Rep Power
    0

    Re: form2mail.php instead of thankyou.html

    It won't let me do that either! just tried with php, zip, txt, doc and pdf!

  8. #7
    daraclare is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    43
    Rep Power
    0

    Re: form2mail.php instead of thankyou.html

    I have apache set up and my PHP email settings

    Sorry I can't upload the code to show u!

  9. #8
    alienkinetics's Avatar
    alienkinetics is offline Programmer
    Join Date
    Feb 2010
    Location
    Australia
    Posts
    154
    Rep Power
    0

    Re: form2mail.php instead of thankyou.html

    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.ringsworld.com/form-p...2mail.php.html

  10. #9
    daraclare is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    43
    Rep Power
    0

    Re: form2mail.php instead of thankyou.html

    Thanks folks All sorted now but thanks for your help!

  11. #10
    daraclare is offline Learning Programmer
    Join Date
    Jun 2009
    Posts
    43
    Rep Power
    0

    Re: form2mail.php instead of thankyou.html

    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

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. html
    By edwin namisi in forum HTML Programming
    Replies: 11
    Last Post: 06-14-2010, 02:40 PM
  2. about HTML
    By ashly in forum PHP Development
    Replies: 5
    Last Post: 12-09-2009, 09:19 AM
  3. Replies: 5
    Last Post: 02-02-2009, 10:58 AM
  4. HTML Help
    By Selena777 in forum General Programming
    Replies: 3
    Last Post: 05-22-2007, 03:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts