Hello again guys, i need your assistance once again
I just made a login application and I would like to start the php session but im not sure how to write php code in javascript the code I need to write in the javascript is this:
What im trying to do is to first create a login form when a person click on the login link, then the user submit his username and password. when its submitted ajax will check the name and then send back the info so I need to start the session within javascript.Code:var start_cookies = '<?php setcookie("user",' + name + ', time()+3600) ?>';
Edit:
Title should be "start cookie with javascript?" and not "start session with javascript?"




Reply With Quote




Bookmarks