0
isset($_POST['"$daysofweek[i]"'])

I tried different variations but i can't get it to detect. I have an array with all the days of the week and I want to check every POST variable.

It's probably really simple, but im stuck.

Thanks

1
  • What does $_POST actually have in it? What does $daysofweek have in it? Where does i come from and shouldn't it be $i? You do know what single quoted strings do not interpolate, so that code is looking for <input name="&quot;$daysofweek[i]&quot;"> (with no PHP operating at all on that HTML fragment) Commented Dec 27, 2010 at 18:31

2 Answers 2

1

Assuming $i is also a PHP variable (in a loop maybe):

isset($_POST[$daysofweek[$i]])
Sign up to request clarification or add additional context in comments.

1 Comment

@Adam: I just happen to be about to head the other direction (PHP -> ActionScript)
0
isset($_POST[$daysofweek[$i]])

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.