• Message after clicking send on php form

    Home » Forums » Developers, developers, developers » Web design and development » Message after clicking send on php form

    Author
    Topic
    #429384

    I have done a php contact form but don’t know where in the form l could put some text in so that a message can appear after the email has been sent. i.e when they click on “send” a message appears:

    “Thanks for your enquiry”

    http://www.club-amigos.co.uk/contact.htm%5B/url%5D

    Then returns to the home page.

    Viewing 1 reply thread
    Author
    Replies
    • #999863

      whispershould be http://www.club-amigos.co.uk/contact.html you missed off the l on html

      • #999865

        whoops sorry about that.

        Hi again Jezza, you seem to be regualar.

    • #999868

      I think the description you are after is ‘confirmation page’ – a quick Google brought up this at Experts Exchange as an example.

      • #999870

        Thanks for that, l will look into that.

      • #1000018

        I had a look at that and found it a bit confusing!

        This is the script:

        All l would like to do is to put a thank.html when message has been sent.

        • #1000019

          To be frank Justin

          This is quite a heavy and specialist topic you are entering here and not one you are going to get an instant response on….sorry. I have had a search around the www for you to see if there are any tutorials but I don’t know quite what you are looking for and what your skill levels are with server side stuff.

          It appears there are quite a few sites set up specifically for php

        • #1000028

          Hi Justin

          Assuming that you’ve created thank.html at http://www.club-amigos.co.uk/thank.html, try adding the following to the end of your PHP code:

          (You can then link or redirect from thank.html to your homepage.)
          I’ve no idea if it will work, so please let us know how you get on!

          Cheers,

          • #1000036

            I have done this and it now validates email and message.

            All that l need to do now is to:

            1. Validate subject

            2. Validate name

            3. Display error message (i.e fields not complete on html page (which l will call validate.html) and not on seperate screen).

            4. Also for some odd reason the cursor moves one space to the right in the message field.
            Any ideas as to why this?

            This is the coding:

            Error

            Error

            Oops, it appears you forgot to enter either your
            email address or your message. Please press the BACK
            button in your browser and try again.

            • #1000038

              You might be better of starting a new thread (or threads) for those as they’re different issues from displaying the “thank you” message that you originally asked about. I’m afraid I’ve never used PHP before so won’t be able to help much. Glad the redirect worked though. grin

    Viewing 1 reply thread
    Reply To: Message after clicking send on php form

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: