note 55346 deleted from function.eregi-replace by nlopess

From: Date: Sun, 31 Jul 2005 20:31:59 +0000
Subject: note 55346 deleted from function.eregi-replace by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92840@lists.php.net to get a copy of this message
Note Submitter: carlos at braziland dot com ---- So here is my answer to those who are trying to submit headers through my simple contact form: [code]$any_form_field = eregi_replace("@","[at]",$_POST['just_one_field']); //how can anyone send emails to other email addresses without the @ symbol :)[/code] My suggestion is to do a foreach loop in the $_POST array and remove the @ symbol from all fields (unless you want one of the fields to have the @ symbol, in which case it should be very careful and question if the symbol is necessary). Not the best solution, but it's simple and it works.

« previous php.notes (#92840) next »