Hi, I am new in php, I very happy with the form generator.
The only thing is when user didn't fill in the required field, after they submit the form will direct them to error page, how do I change the page color and font use for the text? And how to add a back button?
Please help..thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Error page is meant to be very simple. It is generated by the process.php file.
If you just wanted to change the bg color you could change this process.php line from
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
to
$error.='<body bgcolor="#00FFFF"><li>You did not enter one or more of the required fields. Please go back and try again.';
Note that all I did was add some html to the $error string. If you get the idea you can add whatever html you want to the $error string and it will produce whatever you've defined. Simple things are best. If you want to get fancy you'll need to come up with a better way to output the html (something other than the $error string).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I am new in php, I very happy with the form generator.
The only thing is when user didn't fill in the required field, after they submit the form will direct them to error page, how do I change the page color and font use for the text? And how to add a back button?
Please help..thanks
Error page is meant to be very simple. It is generated by the process.php file.
If you just wanted to change the bg color you could change this process.php line from
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
to
$error.='<body bgcolor="#00FFFF"><li>You did not enter one or more of the required fields. Please go back and try again.';
Note that all I did was add some html to the $error string. If you get the idea you can add whatever html you want to the $error string and it will produce whatever you've defined. Simple things are best. If you want to get fancy you'll need to come up with a better way to output the html (something other than the $error string).