jeebus Posted October 12, 2006 Report Share Posted October 12, 2006 Vai ir iespējams padot GET vai POST vērtību neizmantojot formu? Link to comment Share on other sites More sharing options...
Paulinjsh Posted October 12, 2006 Report Share Posted October 12, 2006 man domāt, ka nē Link to comment Share on other sites More sharing options...
andrisp Posted October 12, 2006 Report Share Posted October 12, 2006 GET var padot vienkārši ar caur url. Gan GET, gan POST var padot, arī izmantojot javascript xmlhttprequest (ajax). Vēl var ar http://lv.php.net/manual/en/ref.curl.php. Link to comment Share on other sites More sharing options...
Vebers Posted October 12, 2006 Report Share Posted October 12, 2006 Visu to var padod arī caur soketiem. http://php.net/sockets Link to comment Share on other sites More sharing options...
GedroX Posted October 12, 2006 Report Share Posted October 12, 2006 Iespēju ir daudz. Tikai norādi, kas precīzi tev ir nepieciešams. Man liekās, ka līdz socket-iem lieta neaizies. =) Link to comment Share on other sites More sharing options...
blackhalt Posted October 12, 2006 Report Share Posted October 12, 2006 Saites komentāros ir redzami dažādi kodi kā tas darās: http://lv.php.net/manual/en/function.fsockopen.php Link to comment Share on other sites More sharing options...
jeebus Posted October 12, 2006 Author Report Share Posted October 12, 2006 lieta ko gribu ir vnk padot mainīgā vērtību (neizmantojot formas) uz nākamo .php lapu uz kuru redirektējas. Link to comment Share on other sites More sharing options...
Vebers Posted October 12, 2006 Report Share Posted October 12, 2006 (edited) To vari darīt ar sessijām, cepumiem (cookies), vai arī $_GET masīvu (URL). Edited October 12, 2006 by MakaTaNaw Link to comment Share on other sites More sharing options...
jeebus Posted October 12, 2006 Author Report Share Posted October 12, 2006 vai kads var pastastit (vai iedot kādu linku) kā to var izdarīt izmantojot URL? Link to comment Share on other sites More sharing options...
andrisp Posted October 12, 2006 Report Share Posted October 12, 2006 (edited) header("Location: bla.php?mainigais=".$vertiba."&otrs_mainigais=".$vertiba2); Edited October 12, 2006 by andrisp Link to comment Share on other sites More sharing options...
Vebers Posted October 12, 2006 Report Share Posted October 12, 2006 Ja tev ir adrese: http://adrese.lv/index.php?lapa=jaunumi&lietotajs=janis , tad nodot šos mainīgos nākamajai lapai ir pavisam vienkārši: <a href="main.php?lapa=<?php echo $_GET['lapa']; ?>&lietotajs=<?php echo $_GET['lietotajs'];?>">Nākamā lapa</a> Attiecīgi nākamajā lapā šie mainīgie būs $_GET['lietotajs'] un $_GET['lapa']. Link to comment Share on other sites More sharing options...
jeebus Posted October 12, 2006 Author Report Share Posted October 12, 2006 Liels paldies par info! :) Link to comment Share on other sites More sharing options...
Recommended Posts