PHP Saving Session Variable -
I'm trying a new captcha script to call the captcha code that you use: $ _ Session ['captcha'] ['code'] Good works when I echo it on the main form, but when I submit the form it resonates Do, it displays a new code, so I can never find out that it was the old code when they were Rm was deposited. How can I save data for that session and can not change it any more? Put this in your own session: Then, when the form is submitted, then use your variable:
if ($ _ POST ['submit']) {resonance $ _SESSION ['captcha'] ['code']; }
$ _ Session ['old_captcha'] = $ _SESSION ['captcha'];
if ($ _ POST ['submit']) { Echo $ _SESSION ['old_captcha'] ['code']; }
Comments
Post a Comment