expression issue
Posted: Mon Dec 03, 2007 3:02 am
Hi all
I am having an expression issue, this code works fine but if i tired testing it using form it don't work.
here is my form code:
on submit this will give me 0.
any help
thank you
I am having an expression issue, this code works fine but if i tired testing it using form it don't work.
Code: Select all
$regex='/^[a-zA-Z0-9_\.\-\;\:\'\"\/ ]{5,95}$/';
echo preg_match($regex, 'NEW Sony\'s 3.0" L.C.D. - 12MP DIGITAL CAMERA/VIDEO/TOUCH SENSOR K38');Code: Select all
<form id="form1" name="form1" method="post" action="test1.php">
<input name="textfield" type="text" value="NEW Sony\'s 3.0" L.C.D. - 12MP DIGITAL CAMERA/VIDEO/TOUCH SENSOR K38" size="75" />
<input type="submit" name="Submit" value="Submit" />
</form>
any help
thank you