php error: Can't use function return value in write context -


I am using a script, to use it as verification when the form is posted.

This code is being forwarded form page:

   

and code from action page:

  if (empty (htmlentities ($ _ POST ['secret1'])) {if (htmlentities ($ _POST) ['Secret1']) == '00 001') {echo 'PASS';}} {echo 'ERROR';}  

However, when I submit the form, I get "Can not use function return value in the context of writing" error.

I'm just starting to learn php so that the problem was not actually identified. Can you please help

Thank you.

You are trying to empty the function returns (htmlentities), change your first line to:

  if (($ _ POST ['secret1'])) {< Code> 

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -