westman Posted May 30, 2012 Share Posted May 30, 2012 am loking for php 5 for.... $password = ereg_replace("[^A-Za-z0-9]", "", $_POST['password']);andsession_register('username'); Link to comment Share on other sites More sharing options...
birbal Posted May 30, 2012 Share Posted May 30, 2012 i am not sure about your question. you can find all the version of php in http://php.net. current stable version is 5.4ereg_*() and is session_register is deprecated you should use preg_*() and $_SESSION super global array respectively Link to comment Share on other sites More sharing options...
westman Posted May 30, 2012 Author Share Posted May 30, 2012 i have looked athttp://tr.php.net/manual/en/function.session-register.phpand still no help am just working on thesession_register('username');for php 5.3/5.4 Link to comment Share on other sites More sharing options...
justsomeguy Posted May 30, 2012 Share Posted May 30, 2012 $_SESSION['username'] = ''; Link to comment Share on other sites More sharing options...
Guest So Called Posted May 30, 2012 Share Posted May 30, 2012 That's exactly what I'm doing to pass some data via $_SESSION used in coordinating my contact form and CAPTCHA. Just set an element in the $_SESSION array, e.g. $_SESSION['variable'] = whatever value you need. Link to comment Share on other sites More sharing options...
westman Posted May 30, 2012 Author Share Posted May 30, 2012 nicelove itthank you so much ppl Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now