T
[email protected]
Guest
Hey,
Ok so I have made a login script with php and MySQL. It creates the submitted info into my database on MySQL. But, I have two issues:
Every time someone visits the page, it keeps inserting information from previous times or blank info. SO, how do I make required field ( to get rid of blankness) and how to I make it so that the cookies go blank so that it doesn't keep submitting the info over and over if I refresh.
Also, if i get it finished, and somebody logs in, how do I retrieve ONLY their name from my database to show their name when they log in?
-Thanks!
I forgot to ask: Would it be possible to only ask for cookies and submit info if the SUBMIT button is clicked? Right now, when you click submit, it refreshes page and then info is submitted when the page is viewed (this causes multiple blank pages and same info if you refresh.)
Ok so I have made a login script with php and MySQL. It creates the submitted info into my database on MySQL. But, I have two issues:
Every time someone visits the page, it keeps inserting information from previous times or blank info. SO, how do I make required field ( to get rid of blankness) and how to I make it so that the cookies go blank so that it doesn't keep submitting the info over and over if I refresh.
Also, if i get it finished, and somebody logs in, how do I retrieve ONLY their name from my database to show their name when they log in?
-Thanks!
I forgot to ask: Would it be possible to only ask for cookies and submit info if the SUBMIT button is clicked? Right now, when you click submit, it refreshes page and then info is submitted when the page is viewed (this causes multiple blank pages and same info if you refresh.)