How to reload the form
Moderator: General Moderators
How to reload the form
i have a form in page1. When i click the submit button the page2 gets loaded.When i come back to page1 the form contents are getting lost. How can i retain then.

-
psychotomus
- Forum Contributor
- Posts: 487
- Joined: Fri Jul 11, 2003 1:59 am
i am not so familiar with sessions
i am not so familiar with sessions. Can u just give a small example
never EVER use something like this:
Use something like this:
Why? Short tags are not portable across hosts/servers (not supported in all configurations) and they are going to be dropped in PHP6 I've heard. Also, what if somebody posted something like
Code: Select all
<?=$_POST['email'] ?>Code: Select all
<?php echo htmlentities($_POST['email']); ?>with your solution, that would be executed. OUCH."><script>HAXXXORZZ!!</script>