vForums Support > Programming & Coding :: Programming Discussion :: > Login Question

Login Question - Posted By Pixel Drixel (gfxman) (gfxman) on 26th Mar 08 at 12:14am
I have a question. I just created this script:
Code:
 
  1. <html><form action="blahblah.php" method="post"> <p>Name:</p> <p><input type="text" name="name" value="Your name" /></p> <p>Comments: </p> <p><textarea rows="10" cols="20" name="comments">Your comments</textarea></p> <p>Are you:</p> <p><input type="radio" name="areyou" value="male" /> Male</p> <p><input type="radio" name="areyou" value="female" /> Female</p> <p><input type="radio" name="areyou" value="hermaphrodite" /> An hermaphrodite</p> <p><input type="radio" name="areyou" value="asexual" checked="checked" /> Asexual</p> <p><input type="submit" /></p> <p><input type="reset" /></p> </form> </body> </html>
 
Now I was wondering if I altered this a little could I make this a login script or does it have to be in php?

Re: Login Question - Posted By Marc (cr0w) on 26th Mar 08 at 12:19am
It could be done in JS but it would be completely insecure. So PHP is really your best bet. {Wink}

Re: Login Question - Posted By Pixel Drixel (gfxman) (gfxman) on 26th Mar 08 at 12:25am
Oh ok. I was just checking before I go and run off with insecurity. I also have another question, If I use this line:
Code:
 
  1. <a href="#top" onclick="alert ('wow. Javascript.')">Click me</a>
 
Can I make an alert box pop up for pming a staff member.

Re: Login Question - Posted By Marc (cr0w) on 26th Mar 08 at 12:27am
 
Oh ok. I was just checking before I go and run off with insecurity. I also have another question, If I use this line:
Code:
 
  1. <a href="#top" onclick="alert ('wow. Javascript.')">Click me</a>
 
Can I make an alert box pop up for pming a staff member.


That would make an alert popup when clicked on, but I don't think it'd work too well for when someone tries to PM staff. {Wink}

Re: Login Question - Posted By Pixel Drixel (gfxman) (gfxman) on 26th Mar 08 at 12:29am
So would I just do a normal alert-box script.

Re: Login Question - Posted By Marc (cr0w) on 26th Mar 08 at 12:31am
 
So would I just do a normal alert-box script.


Do a location check for if a staff member is being PM'd and then display an alert if it returns true. {Wink}

Re: Login Question - Posted By Pixel Drixel (gfxman) (gfxman) on 26th Mar 08 at 12:45am
Alright I'll try.

Re: Login Question - Posted By Marc (cr0w) on 26th Mar 08 at 12:45am
 
Alright I'll try.


Post back if you need any help. {Wink}