Hi guys, I’m new to PHP and I’m trying to sort out a site at work.
We have a form that users fill in and at the moment we have a message come up if they leave it blank, however, I need to be able to (if possible) force them to do it correctly.
They are putting in a code that MUST have 3 letters (no numbers) at the start followed by any number of numbers (no letters)
Can anyone help a beginner?
currently we use:
[php] {
if(document.all.description2.value == “”)
{
alert(“You need to fill in the URN field. This MUST begin with 3 letters”);
return false;
}
}[/php]
thanks in advance for any help