Using $_SERVER['CONTENT_LENGTH'] you can check the posted file size, even if upload fails. And you can inform the user.
check this url http://php.net/manual/en/features.file-upload.php
did you try to save cart in this format??
[cart]
-->[product1]
---->[finish]=>array(black, red)
---->[quantity]=>[2]
-->[product2]
---->[finish]=>array()
---->[quantity]=>[1]
Use a counter and display the error message out side the while loop.
Because you dont have any rows round, control not entering into while loop to display error.
type
crontab -e
at linux/unix command prompt
type following code (replace path and filename as per your environment)
0 6 * * * /path/to/php -q -f /full/path/to/your/file/sendmail.php
Save & Exit (Esc -> :wq)
try this
echo htmlentities($str, ENT_QUOTES);
ENT_COMPAT : Will convert double-quotes and leave single-quotes alone.
ENT_QUOTES : Will convert both double and single quotes.
ENT_NOQUOTES : Will leave both double and single quotes unconverted.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.