Unknown Posted September 24, 2003 Report Share Posted September 24, 2003 Pirms kaada laika puuleejos uztaisiit guestbook PHP - noseedeeju veselu nakti, mokoties ar PHP kodu un MySQL, un nekaa .... noleemu, ka mans IQ paaraak zems :))) Tagad saaku maaciities PHP no saakuma un nonaacu liidz paraugam, kur ir jaaizveido 1 html fails ar <form action="a.php" method="POST"> un 1 php fails, kurss paraada html failaa ievadiito info - <?php echo $_POST ["x"]; ?>. Un nekaa ....... php fails raada tikai tekstu, bet neraada datus no html faila. Kur probleema???!!! Info - PHP 4.3.3., OmniHTTpd serveris. P.S. <?php phpinfo(); ?> darbojas, citi PHP kodi arii straadaa :((( Atvainojos, ja probleema ir paaraak idiotiska, bet taalaak netieku :( Link to comment Share on other sites More sharing options...
DelNet Posted September 24, 2003 Report Share Posted September 24, 2003 mja nez.. kas palietu...ar formaam nav bijushas probleemas...bet mysql vel lkaat nesmu jkeries, vienreiz palasiiju ievadu u bik talaak un neko nesapratu...mosh ir kaads manuaalis totaalam iesacejam der angljui val, ja lativski tad vispaar ideaali... Link to comment Share on other sites More sharing options...
Benvenuto Posted September 24, 2003 Report Share Posted September 24, 2003 Fails sviests.html, kuraa atrodas forma: <code><font color="#000000"> <form action="a.php" method="POST"> <input type="text" name="x" size="30"> <input type="submit" value="Gatavs!" name="submit"> </form> </font> </code> Fails a.php, kursh apstraadaa formu: <code><font color="#000000"> <font color="#0000CC"><? </font><font color="#006600">echo </font><font color="#0000CC">$_POST</font><font color="#006600">[</font><font color="#CC0000">"x"</font><font color="#006600">]; </font><font color="#0000CC">?> </font> </font> </code> Ja pats pameegjinaasi shos variantus un nestraadaas, tad esi kauko nezinkur salaidis nezinkaadaa deelii. Pats paarbaudiiju, viss straadaa. ;) Link to comment Share on other sites More sharing options...
Recommended Posts