In article <[EMAIL PROTECTED] manila-usia.gov>, [EMAIL PROTECTED] says... > Hello, im doing a form that when you pass it will generate a preview report. > My problem is some fields are optional the optional fields are 5. And for > those fields I need to make it fit when it generate what idea or codes can > you suggest? > > Ex, a businesscard preview form. When it generates it will show you a > businesscard template. But how about those un-filled fields. > > Can this be done thru if and else statement? >
If I correctly understand your problem, you need to test if a variable has been set, and if so echo its value? if(isset($value)) {echo $value;} You may need to substitute $value with $_POST{'value'} or $_GET{'value} depending on whether you have register_globals set off and whether you are using GET or POST to pass the value. -- Quod subigo farinam $email =~ s/oz$/au/o; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php