FAQ |
Kalender |
![]() |
#1 | |||
|
||||
Medlem
|
Hallo!
Jag använder preg_match på följande sätt: Kod:
elseif(preg_match('/[^A-Za-z0-9!?_,.*:()+-= \r\n\'\"]/', $formcontent)) { echo "Invalid characters"; } Kod:
mysql_query("INSERT INTO news (title, content) VALUES ('$formtitle','$formcontent')"); |
|||
![]() |
![]() |
Ämnesverktyg | |
Visningsalternativ | |
|
|