Jump to content
php.lv forumi

zzcoolzz

Reģistrētie lietotāji
  • Posts

    7
  • Joined

  • Last visited

zzcoolzz's Achievements

Newbie

Newbie (1/14)

  1. Sveiki! Kads varetu palidzet jo nesanak :) Man ir tada situacija ka es gribu theme update no v6 uz v7 (PHP FUSION) Esmu atradis guidu bet cik censos uztaisit nesanak! ( versos pie jums ) Jo daudz nezinu no PHP Codinga! Guide - Click Here PHP fusion6 Theme Click Here Paldies jau ieprieks!
  2. Noop garam nau istais man vajag lai ar 8IE nevaretu iejiet weba piemeram! Webs ka redz ka useris ar IE 8 un vinu redirect uz google piemeram! P.s Pa 4ainiku to4ana es esmu 4ainiks!
  3. Sveiki ! Man tads jautajums vai kads nevaretu pateikt ka to izdarit ir bijis tads scripts kas redirecte uz citu lapu kad atrod IE6-7 explorer (browser) <!--Start var browser = navigator.appName var ver = navigator.appVersion var thestart = parseFloat(ver.indexOf("MSIE"))+1 var brow_ver = parseFloat(ver.substring(thestart+4,thestart+7)) if ((browser=="Microsoft Internet Explorer") && (brow_ver < 7)) { window.location="http://manalapa/error.html"; } //End--> man vajag ta lai kad ar 8IE butu tas pats kas ar 7 un 6 IE (notiek redirect bet ar 8 NE ) BET man nestrada uz 8Ie esmu meiginajis visu mainit scripta un neko! taksto ka es esmu 4ainiks - ja varat palidzat :)
  4. Sveiki! Es ka iesacej daudz nerubiju es gribetu paprasit palidzibu jo esmu strupcela! Vienkarsi to google ari skatijos bet nevaru laga saprast! Kads varetu pievienot sim scriptam lai varetu vel failu sutit! Ta ir tikai viena komanda bet ez nevaru to vienk izdarit! (mee big Nooob in php but i lov It) Te bus tas kods!: <?php function show_form() { ?> <form action="" method="post"> <p align="left"><strong>Your name:</strong>*<br> <input type="text" name="name" size="40" /> </p> <p align="left"><strong>Your e-mail:</strong>*<br> <input type="text" name="email" size="40"></p> <p align="left"><strong>Your subject:</strong>*<br> <input type="text" name="title" size="40"></p> <<<<<<<<<Gribetos to funkciju te! <p align="left"><strong>Your message:</strong>*<br> <textarea rows="10" name="mess" cols="50"></textarea></p> <p align="left"><input type="submit" value="Send message" name="submit"></p> </form> *<strong>Need to be completed!</strong> <? } function complete_mail() { $_POST['title'] = substr(htmlspecialchars(trim($_POST['title'])), 0, 1000); $_POST['mess'] = substr(htmlspecialchars(trim($_POST['mess'])), 0, 1000000); $_POST['name'] = substr(htmlspecialchars(trim($_POST['name'])), 0, 30); $_POST['email'] = substr(htmlspecialchars(trim($_POST['email'])), 0, 50); if (empty($_POST['name'])) output_err(0); if(!preg_match("/[0-9a-z_]+@[0-9a-z_^\.]+\.[a-z]{2,3}/i", $_POST['email'])) output_err(1); if(empty($_POST['mess'])) output_err(2); $mess = ' ==========Message for Administration========== Sender Name:'.$_POST['name'].' Sender Mail:'.$_POST['email'].' Sender Message:'.$_POST['mess']; $to = 'mail@yourmail.com'; $from='from@yourmail.com'; mail($to, $_POST['title'], $mess, "From:".$from); echo '<br><strong>Thank you! Your message was sended!</strong>'; echo '<br><strong><meta http-equiv="REFRESH" content="0;URL=http://my url/"> <font size=2 face=verdana><b>Please wait: Loading... </strong>'; } function output_err($num) { $err[0] = 'Error! Wrong name.'; $err[1] = 'Error! Wrong e-mail.'; $err[2] = 'Error! Wrong message.'; echo '<p>'.$err[$num].'</p>'; show_form(); exit(); } if (!empty($_POST['submit'])) complete_mail(); else show_form(); ?> Paldies jau ieprieks! Tikai nevajag rakstit ej google un ta talak es tur biju un man vina nepalidzeja!
×
×
  • Create New...