View Single Post
Old 12-06-2007, 02:58 AM   #26 (permalink)
SOCK
The Acquainted
 
Join Date: Nov 2007
Posts: 154
Thanks: 31
SOCK is on a distinguished road
Default

Quote:
Originally Posted by YBH View Post
Hmm well it seems If I remove the original code

...

And replace it with the array_map method; when it checks If I have entered everything, it gives me my error

PHP Code:
echo 'You have not entered all the required fields.'
Well, sure it does. You are depending on those variables in your if() statement. You either need to keep the reassignments in or alter your if() statement that checks for empty data.

I'm sorry if I confused you with the array_map() code and recommending not performing the reassignments. I'm only trying to show a more efficient method to do the same task.
SOCK is offline  
Reply With Quote