How do I convert value from text field to String so I can match it with reg.expresion.
Thank you.
validatePhone(form.elements["phone"].value);
function validatePhone(phone){
phone_array = phone.match(myRE);
I have ZipCode input field.
Is there a way when user tries to enter letter or any other char besides number nothing get displayed in the field?
I don't want to display alert box.
Thank you.
Thank you everybody.
Everybody is pointing me to the same direction.
How about solution like that:
First second of the new day there is a script automatically running and setting the field to 1 if the now date is between date fields start and end
and to 0 if not.
Then Wouldn't search be...
Thank you but nobody really answered my question.
I use "date" type but how do I display all articles that
are eligible.
I have 2 fields("date" type):
start day end day
Lets say today is '10/31/2004'
when I do SELECT query
article with start day '10/20/2004'
and end day '11/2/2004'gets...
I am trying to add date data to mySQL.
Upon adding info into database User selects start and end day when he wants his article to be visible.
I have to 2 questions:
1) What format should I save my date info in mySQL?
Is mm/dd/YYYY '10/31/2004' a good solution?
Users can do search and...
Hi,
When I click on text field I would like to redirect my page to "index_1.php"
but I get "Error on Page".
and by submiting button I would like to to go to "index_2.php".
Thank you.
<form name='myForm' action=\"\" method=post>
setLink_1(form){
form.action="index_1.php"...
How should this should be done with an array help?
Thank you.
if(form.elements["state"].value != '3' || form.elements["state"].value != '6' || form.elements["state"].value != '23' ||
form.elements["state"].value != '33' || form.elements["state"].value != '34' || form.elements["state"].value...
I have php generated html,javascript.
print("<FORM NAME=\"form1\" ID=\"form1\" action=\"Layout.php\" METHOD=\"post\" >");
print("<a href=\"javascript:document.form1.submit()\" >GO</a>");
Can somebody tell me please why when I click "GO" I get
"Error on Page"?
Thank you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.