Jump to content
php.lv forumi

Jautaajums par mainiigo nodoshanu


orion
 Share

Recommended Posts

Tjip, kaa var nodod normaalaa veidaa mainiigo veertiibas uz naakamo failu - taalaakai apstraadei??

Man pagaidaam tikai ar formu un POST izdodas...

Ir kaadi citi varianti veel?? Caur linku... vai kaa...

Nododamaa infa ir diezgan apjomiiga. Vajadzeetu kko liidziiigu kaa formaas, bet bez pashas formas...

Link to comment
Share on other sites

ir divas metodes - POST un GET

 

POST - izmantojot formas tiek sutiiti dati serverim

<form action="fails.php" method="post">
<input name="vards" value=""/>
<input type="submit" />
</form>

savaac veertiibu ar $_POST['vards']

 

GET - izmanto lai nodotu veertiibu caur linku

<a href="lapa.php?mainigais=2">links</a>

vai ar formas paliidziibu

<form action="fails.php" method="get">
<input name="vards" value=""/>
<input type="submit" />
</form>

savaac veertiibu ar $_GET['mainigais']

 

un kombineetaa metode

<form action="fails.php?mainiigias=3" method="post">
<input name="vards" value=""/>
<input type="submit" />
</form>

savaac veertiibas ar $_GET['mainigais'] un $_POST['vards']

 

tas arii viss

Link to comment
Share on other sites

 Share

×
×
  • Create New...