Quote:
Originally Posted by Speysider
You shouldn't use capital PHP code like IF, ELSE, END IF etc
You'd use something like:
Code:
if (whatever condition you want here)
{
result if condition is true
}
else
{
result if the condition is not true
}
Replacing the part between brackets with whatever you want to happen.
|
i tryed it like that now but still not working
HTML Code:
if ("^\d{8,10}$", enteredText)
{
finalURL = "http:/domain.com/" + enteredText + "/"
}
else
{
value must be between 8 and 10 digits only
}