| |
Therarez
Posts: 12
Score: 0
Joined: 5/22/2001
From: Mexico
Status: offline
|
Hiya I understand where you're coming from, I wanted to develop something similar for my website. Hope this can help you, you basically had this anyway, you just have to decalre a seperate variable for the second input (password) box. Try it out!! <html> <body> <Form name="look" Method=Post> <Input Type=Text Name="TxtSearch" size="14" maxlength="20"> <Input Type=Text Name="TxtSearch2" size="14" maxlength="20"> <Input Type=Button Name=Submit Value="Go!" onClick="goSearch()"> </Form> <Script Language=VBScript> Sub GoSearch() dim searchit, verify searchit=Document.look.txtsearch.Value verify =Document.look.txtsearch2.Value If searchit = verify then msgbox "well done, these passwords match" Else msgbox "sorry, the passwords didn't match" End If End Sub </Script> </body> </html>
|
|