azpage Posted November 27, 2004 Report Share Posted November 27, 2004 Izveidoju formaa bildes pogu (<input type="image" name="first_action" ... ). Uzspiezhot uz to pogu, forma nosuuta kordinaates, kur uz bildes tika uzspiests -> ?first_action.x=2&first_action.y=10 Viss tik taalu labi, izdodas nolasiit ar php funkcijam (GET, POST ... ) citus nodotos mainiigos, piem idlist, tachu kaa lai nolasa kaut vai tas kordinaates, nevaru nekaadi nolasiit! Meeginaaju gan "first_action", gan "first_action.x", meeginaaju arii isset funkciju, taa ar saka ka nav nodefineets neviens no tiem mainiigiem. Kaa tos nolasiit ? Link to comment Share on other sites More sharing options...
hu_ha Posted November 27, 2004 Report Share Posted November 27, 2004 nus šeit viennozīmīgi ir javacript jāpielieto. Izveido divus hidden laukus <form action method...> ... <input type="hidden" name="x" id="x"/> <input type="hidden" name="y" id="y"/> .... </form> un tad ar javacsript maini koordinaates - tur droshi vien jaakjer ir kaut kaads peles move vai veel kaut kaads events (javascript nemaaku, taapeec meklee pats) un liec uzreiz taas hidden laukus. Spiezhot pogu tev jau buus veertiibas un tad jau vari dariities ar php... Link to comment Share on other sites More sharing options...
azpage Posted November 27, 2004 Author Report Share Posted November 27, 2004 Nebiju gluzhi domaajis kaa dabuut x un y kordinaates, bet kaa vispar noteikt vai tads "first_action" mainiigais vispar ir izveidots. Bet neiedomajos par JavaScript. Uztaisiiju, tagad viss aizgaaja kaa gribeeju, bet nju informacijas peec gribeetu tapat uzzinaat vai tos mainiigos ir iespeejams nolasiit no adreses ? Paldies par priekslikumu! Link to comment Share on other sites More sharing options...
justus Posted November 27, 2004 Report Share Posted November 27, 2004 protams ka var 23=$_GET[variablis] forma.php?variablis=23 Link to comment Share on other sites More sharing options...
bubu Posted November 28, 2004 Report Share Posted November 28, 2004 Kādreiz manuāli arī lasat? http://lv.php.net/manual/en/faq.html.php#faq.html.form-image Ja ir <input type="image" name="first_action" ...>, tad php galā jālasa $_POST['first_action_x'] un $_POST['first_action_y'], ja form method="post" (vai attiecīgi $_GET pie "get") Link to comment Share on other sites More sharing options...
azpage Posted November 28, 2004 Author Report Share Posted November 28, 2004 bubu, liels paldies, biju meeginaajis ar punktu (nosaukums.x), mekleeju tikai html manuaali Paldies Link to comment Share on other sites More sharing options...
Recommended Posts