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.

  if ($ _ POST ['submit']) {resonance $ _SESSION ['captcha'] ['code']; }   

How can I save data for that session and can not change it any more?

Put this in your own session:

  $ _ Session ['old_captcha'] = $ _SESSION ['captcha'];   

Then, when the form is submitted, then use your variable:

  if ($ _ POST ['submit']) { Echo $ _SESSION ['old_captcha'] ['code']; }    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -