1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Really quick regex question

Discussion in 'PHP' started by speaker219, Jul 11, 2007.

  1. speaker219

    speaker219 New Member

    Joined:
    Jul 11, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    In php, how would i validate a form so that it can only be letters and numbers? Thanks. (have no idea how to write regex expressions)
    If possible, could you show me exactly how to do it in php so i could return a message if it is not validated correctly? thanks.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83

Share This Page