Uldeens Posted September 9, 2003 Report Share Posted September 9, 2003 Scripts... <html> <head> <title>TEST PHP</title> </head> <body> <form action="test.php" method="post"> <input type="text" name"mails" value="email"><br> <input type="submit" name="submit" value="submit"> </body> </html> fails TEST.PHP <? echo $mails; ?> Tas atrodas My Webpage kaapeec un kaa tas nestraadaa paskatieties pasi un luudzuuuuu pasakiet kaapeec??? Link to comment Share on other sites More sharing options...
Kaklz Posted September 9, 2003 Report Share Posted September 9, 2003 <html><head><title>TEST PHP</title></head><body><form action="test.php" method="post"><input type="text" name="mails" value="email"><br><input type="submit" name="submit" value="submit"></body></html> un <?phpecho $_REQUEST['mails'];?>[code] Iespējams, ka uz eclub.lv ir izslēgts Register Globals, tāpēc php daļa jāizlabo uz manis parādīto, kā arī tavā testa HTML dokumentā pie name pietrūkst vienādības zīme bija name"mails", vajag name="mails" .. tagad vajadzētu strādāt. Link to comment Share on other sites More sharing options...
Uldeens Posted September 9, 2003 Author Report Share Posted September 9, 2003 Bet ka izmainiit tekstu lai tas epasts buutu e-mail links??? Es meeginaaju <html> <body> <a href="mailto: <? echo $_REQUEST['mails'] " ; ?></a> </body> </html> Neiet... Link to comment Share on other sites More sharing options...
Uldeens Posted September 9, 2003 Author Report Share Posted September 9, 2003 Paldiess kalkz Link to comment Share on other sites More sharing options...
Venom Posted September 10, 2003 Report Share Posted September 10, 2003 visādam gadījumam pareizāk būtu $_POST['mails']; jo 1) forma tiek nodota ar method=post; 2) $_REQUEST superglobāļvariāblis uz dažiem hostiņģiem varētu būt nogriezts nost; 3) ja kaut kur vēl tiks nodots ...php?mail=... tad $_REQUESTā kāda no vērtībām (GET||POST) tiks pārraksīta (atkarībā no php.ini). Link to comment Share on other sites More sharing options...
Recommended Posts