Page 1 of 1

input data

Posted: Sat Nov 05, 2011 9:32 pm
by jauson
Hi Anyone!

I made a registration form. fields are ========[name, email, contact, address]=========

fields important and not to be empty is ===[name]===.

when I fill up all the fields except the name script will work and say =========[name should not be empty]==========
and when the page refreshes all the input data i input is left blank again. I dont like to input it again. is there any way to resolve this problem.

many thanks

Re: input data

Posted: Sun Nov 06, 2011 1:04 am
by twinedev
There is a a attribute to you inputs caller value="whatever"[/b. so you could so something like:

Code: Select all

<input name="whatever" value="<?php echo (isset($_POST['whatever'']) ? htmlspecialchars($_POST['whatever'']) : ''); ?>" />
-Greg