Jump to content

lkeeney

New Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

lkeeney's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I know next to nothing about this part of PHP. However I was able to generate a rather large application form using eregi statements that worked fine until they deprecated the eregi statement. I understand I should use the preg_match statement but I can't get it to work on my form. Here is the first statement in my form: $string_exp = "^[a-z .'-]+$"; if(!eregi($string_exp,$first_name)) { $error_message .= 'The First Name you entered does not appear to be valid.';} Can someone tell me how to convert this to a preg_match statement? Or if there is another better method please let me know. Lawrence
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.