Hi Folks! This is probably an easy one for most of you php people :-) I've got a PHP form that's working fine, yet after I SEND the form, it goes to a web page with a "Thank You" message on it (ala the php {print} command), ok... what I need to know is (on the backend script following the Thank You message) how can I add a 'link' that when clicked on, the Thank You page will switch back to the main FORM page? Right now, the form stops on the Thank You page and I need to go back to the main area where you fill out info. :-) Thanks!
Zen!
The easiest way would be to just add an html link to the page. Note that you can easily mix and match php and html on the same page. Just end your php block with a ?> and then print html.
For example...
<?php
// Do some form processing here
?>
<a href="index.php">Go back to the Main Page</a>.
You can also use echo (or print I suppose) to output HTML from inside a php code block. To do so, just put the regular HTML in your string.
While doing this, remember that if you quote your string in single quotes, you'll need to escape single quotes that you use in HTML.
For example...
<?php
// Do some form processing here
echo '<a href="index.php">Go back to the main page</a>.';
?>
Good luck,
- Walkere