#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2012
    Posts
    9
    Rep Power
    0

    Regex for array?


    I have a form with multiple inputs, like

    Code:
    <input class="text_area" type="text" name="that[]" value="<?php echo $columnorder['that']; ?>" />
    <input class="text_area" type="text" name="that[]" value="<?php echo $columnorder['that']; ?>" />
    ...
    ...
    The number of inputs is dynamic and the dream for me would be this

    a regex that checks all the that[]-values so that

    none of the values can be empty or 0 and none of the values can the same as any other value

    Can anyone help me?
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,007
    Rep Power
    9398
    Why would you want to use a regex for this? It's hardly appropriate (though, perhaps unsurprisingly, possible).

IMN logo majestic logo threadwatch logo seochat tools logo