PHPFusion - tai laisvai platinama nemokama turinio valdymo sistema (TVS), kurios pagalba galite greitai, lengvai ir
patogiai susikurti norimą internetinį puslapį. Plačiau apie sistemą...
ozzWANTED 2024 Sau. 17 01:01:00 Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės.
Majakas 2023 Gru. 10 19:12:39 Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m
Žmogus 2023 Rugs. 7 21:09:14 O gal BloodKiller pasijungs?
Apocal 2023 Rugs. 2 18:09:23 Nu davai nuveikiam kažką . Prisijungti kada visi čia .
Apocal 2023 Rugs. 2 00:09:18 Šiaip atėjau pažiūrėti ar dar lopas nesby yra ar koks ten buvo.
Sveiki, gal galit pagelbėti, dvi dienas bandau padaryti bet niekaip neišeina. Turiu contact formą, bet joje nėra funkcijos prisegti failą. HTML kodą susiradau, bet nežinau kaip papildyti php script.
// CHANGE THE TWO LINES BELOW $email_to="email@email.com";
$email_subject="subject";
function died($error){ // your error code can go here echo"We are very sorry, but there were error(s) found with the form you submitted. "; echo"These errors appear below.<br /><br />"; echo$error."<br /><br />"; echo"Please go back and fix these errors.<br /><br />"; die(); }
// validation expected data exists if(!isset($_POST['first_name'])|| !isset($_POST['last_name'])|| !isset($_POST['email'])|| !isset($_POST['telephone'])|| !isset($_POST['comments'])){
died('We are sorry, but there appears to be a problem with the form you submitted.'); }
$error_message=""; $email_exp='/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; if(!preg_match($email_exp,$email_from)){ $error_message.='The Email Address you entered does not appear to be valid.<br />'; } $string_exp="/^[A-Za-z .'-]+$/"; if(!preg_match($string_exp,$first_name)){ $error_message.='The First Name you entered does not appear to be valid.<br />'; } if(!preg_match($string_exp,$last_name)){ $error_message.='The Last Name you entered does not appear to be valid.<br />'; } if(strlen($comments)<2){ $error_message.='The Comments you entered do not appear to be valid.<br />'; } if(strlen($error_message)>0){
died($error_message); } $email_message="Form details below.\n\n";
function clean_string($string){ $bad=array("content-type","bcc:","to:","cc:","href"); returnstr_replace($bad,"",$string); }
Aš radau kodą kuris, veikia 100% bet man jis netinkamas, kadangi mano žinios nėra labai stiprios, tai jį persiredaguoti kaip man reikia nelabai išeina, nes jame reikia įrašyti kokiam email siųsti žinutę, o man reikia, kad jau būtų nurodytas email automatiškai, kokį esu įrašęs HTML kode. Meginau iš šio kodo persikelti ta attach funkciją, bet ji tada neveikia. Štai tas kodas: