ppretorius
Technical User
Hi,
Im interested in modifying some code i came about. Its a simple way out concering security for a site. I admit, if theres some1 on the receiving side thats smart enough, they could read the code and enter the site.
I personally dont know vb at all. I would really appreciate if some1 could assist me in making it do something.
Heres the Code:
sub enterbtn_onclick
if userbox.value="User" and pswbox.value="123Password" then
msgbox"Thank You"
else msgbox"Sorry Incorrect Username or Password entered"
end if
end sub
Now my questions.
* Can we modify the script to be able to add more users (by saying "or" maybe??)
* Is it possible to make the script open a page after the Thankyou msg ???
If some1 could edit it or tell me how, i'd be supper gr8ful!!
Thnx
Im interested in modifying some code i came about. Its a simple way out concering security for a site. I admit, if theres some1 on the receiving side thats smart enough, they could read the code and enter the site.
I personally dont know vb at all. I would really appreciate if some1 could assist me in making it do something.
Heres the Code:
sub enterbtn_onclick
if userbox.value="User" and pswbox.value="123Password" then
msgbox"Thank You"
else msgbox"Sorry Incorrect Username or Password entered"
end if
end sub
Now my questions.
* Can we modify the script to be able to add more users (by saying "or" maybe??)
* Is it possible to make the script open a page after the Thankyou msg ???
If some1 could edit it or tell me how, i'd be supper gr8ful!!
Thnx