LamerNo1 Posted May 2, 2005 Report Share Posted May 2, 2005 Kā pārbaudīt informāciju tā lai lietotājvārdā varētu būt tikai burti un cipari. un mosh kāram ir ejošs skripts bildes uploadam, tas kas ir php.net man neiet... Link to comment Share on other sites More sharing options...
bubu Posted May 2, 2005 Report Share Posted May 2, 2005 if (preg_match('/[^a-z0-9]/i', $teksts)) { // teksts satur kautko citu nekā burtus vai ciparus } Link to comment Share on other sites More sharing options...
LamerNo1 Posted May 2, 2005 Author Report Share Posted May 2, 2005 (edited) ok, tas takaa i skaidrs un straadaa, bet ar upload joprojaam nekas nesanaak (mosh eclub.lv uz kura testeeju nogriezc) aa un veel.. kaa E-mail paarbaudiit //pati funkcija function checkEmail($email) { if (!preg_match("/^( [a-zA-Z0-9] )+( [a-zA-Z0-9\._-] )*@( [a-zA-Z0-9_-] )+( [a-zA-Z0-9\._-] +)+$/" , $email)) { return false; } return true; } //izmantoju shitaa if(!checkEmail($_POST['jskRegMail'])) print "Meils nepareizs"; padod man aaraa to briidinaajumu, pat ja ir pareizs... Edited May 2, 2005 by LamerNo1 Link to comment Share on other sites More sharing options...
Lynx Posted May 2, 2005 Report Share Posted May 2, 2005 if(!preg_match('~^[-\w\d._]+@([-\w\d]+\.)+\w+$~i', $email)) { die('Emails ievadīts nepareizā formātā!'); } Pats lietoju šādu variantu viss strādā.. Link to comment Share on other sites More sharing options...
rudzis Posted May 3, 2005 Report Share Posted May 3, 2005 (edited) ar upload joprojaam nekas nesanaak (mosh eclub.lv uz kura testeeju nogriezc)Uz eclub tev upload f-cijas muuzham neies... Edited May 3, 2005 by rudzis Link to comment Share on other sites More sharing options...
smarty Posted May 3, 2005 Report Share Posted May 3, 2005 (edited) meklee sakariigu hosteri Edited May 3, 2005 by smarty Link to comment Share on other sites More sharing options...
rudzis Posted May 3, 2005 Report Share Posted May 3, 2005 Vispaar jau vislabaak buutu testeet lokaali ;) Link to comment Share on other sites More sharing options...
LamerNo1 Posted May 3, 2005 Author Report Share Posted May 3, 2005 par to ka eclub.lv vareetu uploads buut nogriests nesaubos... bet varbuut tomeer kaadam ir kaads ejosh skirpta paraugs kaa uploadeet failu un ielikt to ieksh ./bildes/ un tad veel nomainiit nosaukumu pret $_POST["filename"] saglabaajot paplasinaajumu kaac bija.. aa un veel paarbaidiit vai taa ir jpeg bilde... Link to comment Share on other sites More sharing options...
Recommended Posts