Hi,
Trying to use the server side validation feature with PHP.
I have added the following PHP code from the Validation tab and set Enable Server Side Validation ? Yes
Basically trying to stop any URL links in the comments text field.
The above code works fine on a standalone PHP form, but seems to be ignored by CF.
Any idea what I'm doing wrong?
Many thanks,
- Vince
Trying to use the server side validation feature with PHP.
I have added the following PHP code from the Validation tab and set Enable Server Side Validation ? Yes
<?php
if (eregi('http://*.', $comments))
die ("Sorry, no links allowed");
if (eregi('www*.', $comments))
die ("Sorry, no links allowed");
?>
Basically trying to stop any URL links in the comments text field.
The above code works fine on a standalone PHP form, but seems to be ignored by CF.
Any idea what I'm doing wrong?
Many thanks,
- Vince