View Full Version : Result page!?

08-30-2006, 08:29 PM
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 :D

08-31-2006, 12:14 AM
Wow no one knows it :(

08-31-2006, 12:21 AM
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.

08-31-2006, 12:52 AM
I am very sorry.. Thankyou for the help :thumbsup:

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 :(

08-31-2006, 12:56 AM
PHP: header('thankyou.php');

08-31-2006, 12:58 AM
So where do i place that in the page that i make? Also will that redirect them?

08-31-2006, 01:03 AM
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. :)

08-31-2006, 01:11 AM
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 :o

08-31-2006, 01:14 AM
Notepad will edit PHP files. Can you post up a link to your page or anything?

08-31-2006, 01:21 AM
Well im making my website in notepad with html but a little php wont hurt it (i guess).. Here is the code

<input type="text" name="Name">
Event name:
<input type="text" name="Event Name">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Your email:
<input type="text" name="Email">
The event is happening in:
<input type="text" name="Email">&nbsp;&nbsp;&nbsp;&nbsp;
<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....

08-31-2006, 01:41 AM
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">

08-31-2006, 01:44 AM
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.

08-31-2006, 01:48 AM
Ok thanks for the help.. I guess I have to have my website up first :D