I have a form which passes information and generates a user submitted field. Its actually a business card template program, on this template program I have Some required fields and non required fields which I while use telephone extension And webaddress url options.
Now my problem is if they don't enter any fields offcourse the current setup now Is just display the template that the user submitted with out verifiying if some of The option fields exist, I hope you can see the problem now. Business card program Generator will be out of design if the user does not enter some options fields Ex: the name Extension # ____ box option is still there. Im trying to verify this Using if and else statement but really I could not figure it out.. $v_name = $_REQUEST['NAME'] ; $v_jobtitle = $_REQUEST['JOBTITLE'] ; $v_tel = $_REQUEST['Tel'] ; $v_telextension = $_REQUEST['TelExtension'] ; $v_emailadd = $_REQUEST['EmailAdd'] ; $v_webadd = $_REQUEST['WebAdd'] ; if ($v_name) { echo "may web"; require "temp1.php"; } else { echo "wala web"; require "temp1-1.php"; } if ($v_jobtitle) { echo "may ext"; require "temp2.php"; } else { echo "wala ext"; require "temp2-1.php"; } Any help will be most appreciated. -- Thank you, Louie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php