Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach($_POST as $ime=>$vrednost) {
- if($ime == 'Potrdi') { continue; }
- $ime_post .= $ime;
- $vsebinatxt .= $ime . ': '. $vrednost[0] . "\n";
- if($vsebinatxt == '') { continue; }
- if(isset($vrednost[1]) AND ($vrednost[0] == '' OR $vrednost[0] == '0')) { // preveri hidden polja, če so določena,pomeni, da je polje obvezno
- #if($ime == 'Email') { continue; }
- $napaka .= $vrednost[1].'<br />';
- $poslji = FALSE;
- }
- if($ime == 'Email') {
- $email == $_POST['Email'][0];
- if(!eregi("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,3})$",$email)) {
- $napaka .= $vrednost[1].'<br />';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement