Hi guys
What should I change to the following code, to make the second part (= subject part) expect a url in the following form: http://www.XXX.com
I guess I should add a $string_exp = like in the first part (the name part) but I don't know how to do it exactly...
Can someone please help me, consider it your good deed for the day ;-)
Thx!
XoRaK
What should I change to the following code, to make the second part (= subject part) expect a url in the following form: http://www.XXX.com
I guess I should add a $string_exp = like in the first part (the name part) but I don't know how to do it exactly...
Can someone please help me, consider it your good deed for the day ;-)
PHP:
$string_exp = "/^[A-Za-z .'-]+$/";
if(!preg_match($string_exp,$name)) {
$error_message .= 'The First Name you entered does not appear to be valid.<br />';
}
if(!preg_match($string_exp,$subject)) {
$error_message .= 'The url you entered does not appear to be valid.<br />';
}
Thx!
XoRaK