vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Programming Discussion :: Login Question - View Topic
Topic Rating: *****
Printable View
Pixel Drixel (gfxman)
New Member
*

Posts: 38
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Login Question (26th Mar 08 at 12:14am UTC)
question
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?

Image

My Deviant Art: http://tinyurl.com/49lpzr
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


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

rroll.to— Shorten a link, rickroll your friends.
Pixel Drixel (gfxman)
New Member
*

Posts: 38
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: Login Question (26th Mar 08 at 12:25am UTC)
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.

Image

My Deviant Art: http://tinyurl.com/49lpzr
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Login Question (26th Mar 08 at 12:27am UTC)
 
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}

rroll.to— Shorten a link, rickroll your friends.
Pixel Drixel (gfxman)
New Member
*

Posts: 38
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: Login Question (26th Mar 08 at 12:29am UTC)
So would I just do a normal alert-box script.

Image

My Deviant Art: http://tinyurl.com/49lpzr
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Login Question (26th Mar 08 at 12:31am UTC)
 
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}

rroll.to— Shorten a link, rickroll your friends.
Pixel Drixel (gfxman)
New Member
*

Posts: 38
Status: Offline
Gender: Male
Joined:  
Reputation: 0%  


pm
Re: Login Question (26th Mar 08 at 12:45am UTC)
Alright I'll try.

Image

My Deviant Art: http://tinyurl.com/49lpzr
Marc
vChat Developer
*****
I <3 Rossy

Posts: 3,388
Status: Offline
Gender: Male
Location: Ontario, Canada
Age: 33
Joined:  

Additional Groups:
Coding Team
***


Reputation: 40%  


pmwww
Re: Login Question (26th Mar 08 at 12:45am UTC)
 
Alright I'll try.


Post back if you need any help. {Wink}

rroll.to— Shorten a link, rickroll your friends.
 Printable View

All times are GMT+0 :: The current time is 5:27am
Page generated in 0.5051 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums