I have the following code,
$test=$userContact['firstName']."|".$userContact['lastName']."|".$userContact['universityEmail']."|".$userContact['address1']."|".$userContact['city']."|".$userContact['state']."|".$userContact['zip']."|".$userContact['phonea']."|".$userContact['address2']."|".$userContact['phoneb']."|".$userContact['phonec']."|".$userContact['org_code1'];
print("<input type='hidden' name='oldUserInfo' value='$test'>"
;
My problem comes when a user inputs a ' in any of the userContact fields, it automatically cuts off the rest of the fields from being included. Is there a easy way around this?? I tried using double quotes around value= but that did not work, THANKS!
$test=$userContact['firstName']."|".$userContact['lastName']."|".$userContact['universityEmail']."|".$userContact['address1']."|".$userContact['city']."|".$userContact['state']."|".$userContact['zip']."|".$userContact['phonea']."|".$userContact['address2']."|".$userContact['phoneb']."|".$userContact['phonec']."|".$userContact['org_code1'];
print("<input type='hidden' name='oldUserInfo' value='$test'>"
My problem comes when a user inputs a ' in any of the userContact fields, it automatically cuts off the rest of the fields from being included. Is there a easy way around this?? I tried using double quotes around value= but that did not work, THANKS!