Menu

Error page color and text

Help
t0pup
2005-09-27
2013-06-03
  • t0pup

    t0pup - 2005-09-27

    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

     
    • TNTEverett

      TNTEverett - 2005-09-27

      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). 

       

Log in to post a comment.