Tema: Re: Padekit pradedanciam
Autorius: Faktas
Data: 2009-10-01 13:51:44
nu gal kad
kintamajam suteiki reiksme, bet jo neprinti.
parasyk gale echo $query_string;

 
"Kestas" <mmm@nera.lt> wrote in message news:ha1uqj$1dv$1@trimpas.omnitel.net...
> Bandau tokius du pvz.. Ju veikimo principas butu,uzpildzius 
> forma,submitinant, atsidaro naujas langas ir jame yra parasytas sveikinimas 
> su  pries tai formoje yrasutais duomenim. Taciau man rodo vien pasveikinima, 
> neiterpia i teksta formos duomenu. Patarkit kas negerai.Dekui
> 
> Pirmas failiukas "who_are_you.php":
> 
> <form action="you_are_advanced.php" method="GET">
> Pleese fill in the following fields: <br />
> <?php
> $fav="PHP";
> ?>
> <b>FIRST NAME:</b>
> <input type="text" name="first" value="<?php print($first); ?>" size="15"> 
> <br />
> <b>LAST NAME:</b>
> <input type="text" name="last" value="<?php print($last); ?>" size="15"> <br 
> />
> <b>FAVORITE PROGRAMMING LANGUAGE:</b>
> <input type="text" name="fav" value="<?php print($fav); ?>" size="15"> <br 
> />
> <input type="submit" value="Go" size="15">
> </form>
> 
> Antras failiukas "you_are_advanced.php":
> 
> Hello <b><?php print($first . "" . $last); ?></b>
> I'm glad to know your favorite programming language is <?php print($fav); 
> ?>.
> <?php
> $query_string = "";
> $query_string = "?first=" . urlencode($first);
> $query_string = "&last=" . urlencode($last);
> $query_string = "&fav=" . urlencode($fav); ?>
> <br /><br />
> <a href="who_are_you.php<?php print($query_string) ?>">
> Back to who are you advanced </a> 
>