Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by novice2004

  1. novice2004

    convert value to String

    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);
  2. novice2004

    input field

    Thanks a lot.
  3. novice2004

    input field

    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.
  4. novice2004

    Query based on date

    Thank you.
  5. novice2004

    Query based on date

    I mean field visible = 1 or 0. Than SELECT * WHERE VISIBLE = 1.
  6. novice2004

    Query based on date

    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...
  7. novice2004

    Query based on date

    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...
  8. novice2004

    Query based on date

    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...
  9. novice2004

    date

    I get two dates from text fields "10/30/2004" "11/25/2004" How do I determine difference in days? Thank you.
  10. novice2004

    form

    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"...
  11. novice2004

    array

    What is it that you are trying to achieve? Exactly what you typed. Thank you very much.
  12. novice2004

    array

    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...
  13. novice2004

    form inside form

    Is it possible to have a form inside form? Would you show me a working example please? Thank you.
  14. novice2004

    form

    Thanks a lot. It works now.
  15. novice2004

    form

    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.

Part and Inventory Search

Back
Top