Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13

Thread: Result page!?

  1. #1
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Result page!?

    Ok I need help. I have searched for a long time and found nothing. I have the form and everything, I just need a result page where it says "Thankyou for your submission" or sometrhin like that... I dont know if it has to be php I would like html but php would be fine.. If anyone knows the script please tell me

  • #2
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Wow no one knows it

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    If you want to make a page that just says thank you. Then make a HTML page with that on it and your PHP page when its done with its processing can redirect the user there.

    And you should usually give more than 5 hours before you bump your thread in the future.
    OracleGuy

  • #4
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I am very sorry.. Thankyou for the help

    Actually im still havning trouble can you provide me with a code do that when they click submit it redirects them to the page I make... Sorry for all of this

  • #5
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    PHP: header('thankyou.php');

  • #6
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So where do i place that in the page that i make? Also will that redirect them?

  • #7
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In the PHP script which processes the form, that will direct the user to thankyou.php. You'll probably want to place it at the end, after the processing has been done.

    Post up your PHP script if you're having problems.

  • #8
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok i have a script but I have another problem where can I edit it? I tried notpad that doesnt seem to work?? I know these are dumb questions im just starting

  • #9
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Notepad will edit PHP files. Can you post up a link to your page or anything?

  • #10
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well im making my website in notepad with html but a little php wont hurt it (i guess).. Here is the code
    Code:
    
    <form>
    &nbsp;Name: 
    <input type="text" name="Name">
    <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    Event name: 
    <input type="text" name="Event Name">
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Your email: 
    <input type="text" name="Email">
    <br>
    The event is happening in: 
    <input type="text" name="Email">&nbsp;&nbsp;&nbsp;&nbsp;
    <br>
    <p>Description of Event :</p>
    <textarea cols="45" rows="5"></textarea><p>&nbsp;</p>
    
    <input type="submit" value="Send the Event" />
    You can put that in notepad and see what it looks like.. Anyways i want that form to redirect after someone hits the "end event button".. But the form is html and i would like a redirect HTML script but none of them are working....

  • #11
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Currently that form is doing nothing. You need an action attribute in the form tag to whatever is processing the form.

    <form action="script.php">

  • #12
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,389
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    Your <form> is not being processed by any script ...

    You have no script to process it.

    It would be something like:
    <form action='myformscript.php' method='post'>

    Where you would have a PHP script called "myformscript.php"
    Within that script, you would send the email and redirect.

    Before you put in a PHP script to process your form, make sure
    your webhost allows PHP scripting and make sure your webhost
    allows you to send emails using PHP. Some hosts only allow you to
    use their own sending method.

    Let us know what you find out with your webhost.

  • #13
    New to the CF scene
    Join Date
    Aug 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok thanks for the help.. I guess I have to have my website up first


  •  

    Posting Permissions

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