iki Posted September 6, 2006 Report Share Posted September 6, 2006 Man ir lapa ar sekojošu tabulu: <form action="post.php" method="post" name="mailer"> <table border=0 align=center cellspacing=1 cellpadding=3 BgColor=silver width="80%"> <tr><td align="right"><b>Vards:</b></td><td><input type="text" name="name" value="" size=40 maxlenght=40></td></tr> <tr><td align="right"><b>E-pasts:</b></td><td><input type="text" name="email" value="" size=40 maxlenght=40></td></tr> <tr><td align="right"><b>Telefons:</b></td><td><input type="text" name="tlf" value="" size=40 maxlenght=40></td></tr> <tr><td align="right"><b>Adrese:</b></td><td><input type="text" name="adrs" value="" size=40 maxlenght=140></td></tr> <tr><td align="right"><b>Zinojuma tema:</b></td><td><input type="text" name="tema" value="" size=40 maxlenght=60></td></tr> <tr><td align="right" valign="top"><b>Zinojums:</b></td><td><textarea name="contt" cols="40" rows="7"></textarea></td></tr> <tr><td colspan=2 align="center"> <input type=submit value=" nosutit "> <INPUT TYPE=reset VALUE=" dzest "> </td></tr></table> </form> citā lapā ar nosaukumu post.php ir skripts: <?php $name = htmlspecialchars(stripslashes($name)); $email = htmlspecialchars(stripslashes($email)); $tlf = htmlspecialchars(stripslashes($tlf)); $adrs = htmlspecialchars(stripslashes($adrs)); $tema = htmlspecialchars(stripslashes($tema)); $contt = htmlspecialchars(stripslashes($contt)); $to = "blablabla@inbox.lv"; $mess = "No saita ir sanemts zinojums. Vards - $name; e-pasts - $email; telefons - $tlf; adrese - $adrs; zinojums - $contt"; $headers = "Content-type: text/plain; charset=windows-1251"; mail($to, $tema, $mess, $headers); echo ('<html><head> <meta http-equiv="content-type" content="text/plain; charset=windows-1251"> <meta http-equiv="refresh" content="0; url=http://www.adrese.net/"> </head></body></html>'); ?> Tabulā ievadītais ziņojums līdz e-pastam nenonāk. Varbūt tas ir tāpēc, ka e-pasts nav uz tā paša servera kur lapa, bet varbūt man kaut kur ir kļūda? Esmu iesācēja šinī jomā, tāpēc būšu ļoti pateicīga par jebkādu palīdzību. Link to comment Share on other sites More sharing options...
litt Posted September 6, 2006 Report Share Posted September 6, 2006 (edited) echo $email mēģināji savā skriptā likt? Datus no formas parasti ņem ar $email = $_POST['email']; Edited September 6, 2006 by litt Link to comment Share on other sites More sharing options...
Delfins Posted September 6, 2006 Report Share Posted September 6, 2006 jastaisa statistiku, cik juuzeri ar pirmo postu liek problēmu ar register_globals = off Link to comment Share on other sites More sharing options...
iki Posted September 6, 2006 Author Report Share Posted September 6, 2006 Varbūt kāds var skaidrāk pateikt kur ko likt? Esmu jau daudz ko izmēģinājusi, bet nekā...... Link to comment Share on other sites More sharing options...
Delfins Posted September 6, 2006 Report Share Posted September 6, 2006 izmēģināji visu, izņemot "Search forum" ? Link to comment Share on other sites More sharing options...
iki Posted September 6, 2006 Author Report Share Posted September 6, 2006 Arī to izmēģināju! Citādi nebūtu rakstījusi, zinot to, kā te mīl aplikt iesācējus! Link to comment Share on other sites More sharing options...
bubu Posted September 6, 2006 Report Share Posted September 6, 2006 Iesācējus mīl aplikt tikai tad, ja tie iesācēji nekā negrib iemācīties un paši nejēdz kautko pameklēt, bet grib visu jau gatavu dabūt. litt pateica, kur tev ir problēma. Ja joprojām nav skaidrs, palasi šos: http://php.lv/f/index.php?showtopic=3104 http://php.lv/f/index.php?showtopic=4436 http://php.lv/f/index.php?showtopic=3808 http://php.lv/f/index.php?showtopic=3447 http://php.lv/f/index.php?showtopic=3182 http://php.lv/f/index.php?showtopic=2597 Un vispār: http://www.php.net/manual/en/security.globals.php Link to comment Share on other sites More sharing options...
litt Posted September 6, 2006 Report Share Posted September 6, 2006 Pats neaizdomājies pamēģināt? Ar kādu 3. reizi gan jau būtu nonācis pie kaut kā līdzīga.. $name = htmlspecialchars(stripslashes($_POST['name'])); Link to comment Share on other sites More sharing options...
iki Posted September 6, 2006 Author Report Share Posted September 6, 2006 Par to register_globals = off palasīju, bet tik un tā nesaprotu. Link to comment Share on other sites More sharing options...
v3rb0 Posted September 6, 2006 Report Share Posted September 6, 2006 un ko mums nu darīt, ka neredze atšķirību starpt $name un $_POST['name'] ? Link to comment Share on other sites More sharing options...
iki Posted September 6, 2006 Author Report Share Posted September 6, 2006 Atšķirību redzu un arī nomainīju, bet tik un tā nedarbojas. Link to comment Share on other sites More sharing options...
Delfins Posted September 6, 2006 Report Share Posted September 6, 2006 debug, debug, debug, debug ..... Link to comment Share on other sites More sharing options...
Blitz Posted September 6, 2006 Report Share Posted September 6, 2006 smtp php.ini noradiji? Link to comment Share on other sites More sharing options...
iki Posted September 6, 2006 Author Report Share Posted September 6, 2006 Nē, nenorādīju! Kur un kā to norādīt? Link to comment Share on other sites More sharing options...
savejais Posted September 6, 2006 Report Share Posted September 6, 2006 SMTP norādji? Link to comment Share on other sites More sharing options...
Recommended Posts