i have form content of text ,but when i press ok i go to another page ,but i dont want to go if the text is null,,thanks for all
function vbscript in asp
مغلق
Dear brother...
Hope this sample help you (Please use ARABIC language as possible as you can):
<html> <head> <title>Check Form</title> </head> <script LANGUAGE="VBScript"><!-- Private Sub CheckForm() If Len(Trim(f.q.Value)) > 0 Then f.Submit Else MsgBox "Enter some words for search",,"Missing data" End If End Sub //--></script> <BODY> <form action="http://www.google.com/search" name=f> Google Search: <input maxlength=2048 name=q size=55 title="Google Search" value=""> <input name=btnG type=button value="Google Search" OnClick=CheckForm()> </form> </BODY> </HTML>
الأخ الفاضل ...
أرجوا ان يساعدك هذا المثال:
برجاء أستخدام اللغة العربية بقدر المستطاع
شكراً
Nothing is impossible, the word impossible itself says that: I M - Possible
هذا الموضوع مغلق.