View Single Post
  #12 (permalink)  
Old Sep 14th, 2007, 13:16
AdRock's Avatar
AdRock AdRock is offline
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How do I echo <?php .....

I checked what was getting echoed at the end and all the variables are getting echoed so those variables are getting passed through the check_form() function.

I did some further tests and I found that $old value was not getting assigned anything

The problem lies in this bit I believe
PHP: Select all

     else if(!ereg("^[A-Za-z]{2,30}$",$first_name)) {
  
$error['first_name'] = true;
          
$print_again true;
   
$old_value $get_first_name//This bit is causing the error
         
$message="<li><span><b>Forename</b></span> must contain letters only</li>";
     } 
Reply With Quote