Jump to content
php.lv forumi

Formas Submitosana Uz Php Tala Pasaa Dokumentaa


Uldeens

Recommended Posts

Taada doma.

NU ideja

 

<Form action="$vards" method="post">

<input type="text" name="text">

<input type="submit" name="submit">

</form>

 

Nu jaa man pasam nepatiik kas te sanaaca.Bet gribeeju lai ievadiitais vards paraadaas tajaa pasaa lapaa

nepaarejot uz citu vietu.

Link to comment
Share on other sites

Nu.. ar php gribot vai negribot buus jaapaarlaadee lapa par jaunu citaadi buus jaaizmanto JS. Bet nu ja tu piem formu submito ieksh index.php un gribi lai taa infa paraadaas tajaa pashaa lapaa bet ar lapas paarlaadeeshanu tad tas ir very easy :)

<?php

if ($ok) {

echo '"tevi sauc: $vards";

}

else {

echo '<form action="" method="post">';

echo '<input type="text" name="vards" size="20">';

echo '<input type="submit" value="OKej" name="ok">';

echo ' </form>';

}

?>

Link to comment
Share on other sites

×
×
  • Create New...