Puika1 Posted December 16, 2009 Report Share Posted December 16, 2009 sveiki es nez vai jus sapratisiet,bet man vaidzetu scriptu pienemsim ieejot lapa bus text "uzpied uz manis" un kad uzpiez paradas kautkads teksts piem "HALLO :D" un problema ir tada ka es nezinu ka tas izdarams lai sastavetu no viena PHP dokumenta.... HELP? Quote Link to comment Share on other sites More sharing options...
rATRIJS Posted December 16, 2009 Report Share Posted December 16, 2009 Nu lol...es tev ieteiktu pamācīties php pamatus. Drīz jau prasīs kā saskaitīt divus skaitļus izmantojot PHP... Quote Link to comment Share on other sites More sharing options...
anonīms Posted December 16, 2009 Report Share Posted December 16, 2009 <?php if($_POST['hallo']) { echo "HALLO!! KĀDS MĀJĀS?"; } else { echo '<form method="POST"> <input type="submit" name="hallo" value="Uzspiedīsi uz manis un nonāksi paradīzē" /> </form>'; } ?> Quote Link to comment Share on other sites More sharing options...
false Posted December 16, 2009 Report Share Posted December 16, 2009 (edited) <?php if(isset($_POST['poga'])){ echo "hallo"; } ?> <form action="" method="post"> <input name="poga" value="uzspied uz manis" type="submit"> </form> Edited December 16, 2009 by false Quote Link to comment Share on other sites More sharing options...
Puika1 Posted December 16, 2009 Author Report Share Posted December 16, 2009 paldies bet man nevaig lai tur butu poga :)ka varetu ar parastu txt Quote Link to comment Share on other sites More sharing options...
Grey_Wolf Posted December 16, 2009 Report Share Posted December 16, 2009 ka varetu ar parastu txt Njaa paskatijos tavus veidotos Topicus.. Zini labaak samaksaa kaadam , jo Programmesana galiigi nav prieks Tevis.. Jo laikam pat necenties ko iemacities :( Quote Link to comment Share on other sites More sharing options...
anonīms Posted December 16, 2009 Report Share Posted December 16, 2009 (edited) tāpat darīt nav ko... <?php if($_GET['hallo']) { echo "HALLO, TU TE?"; } echo "<a href='?hallo=1'>SPIED</a>"; ?> Bet nu tas ir pats primitīvākais. Tik pat labi, var pogu aizvietot, vai izmantot ajax Edited December 16, 2009 by anonīms Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.