...

View Full Version : Result page!?



Demension
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

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

oracleguy
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.

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

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

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

mark87
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. :)

Demension
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

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

Demension
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



<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....

mark87
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">

mlseim
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.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum