while (list($k, $v) = each($_POST)) { if(eregi("subs_",$k)) { if ($set != "") $set .= " , "; $set .= " `$k`='$v'"; } } wat does this line of code means? pls giv a solution..
reads contents of $_POST, then store to $set variable like: , `test`='testing' , `x`='2' if error, declare $set='' before while clause
thank u.. i have a php page for sending mails.. whenever i send a mail from the page.. i receive 2 or 3 times the same email in my id.. y is it so? pls help me to solve this..
thank u... tried commenting the loop..but no use.. this is the code that is sending email.. wats wrong in this code??? pls help..
Just to let you know, as it is written, your form will be located by bots and they will use it to send millions of spam emails. Since you don't filter newlines from $_POST['subs_name'] and $_POST['subs_email'], the bots will be able to stuff cc: lines and custom content into emails. This may result in you losing your hosting account. Please be careful with anything that makes it into an email header. You must filter out dangerous characters or you will have problems, it's only a question of how long it takes the bots to find you.
thank u for the information.. i am new to php... and a beginner.. can u pls explain how can i apply it in the code? , the one that u explained above.. thank u...