Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Paieška

Parašė zDon· 2010 Rugp. 18 01:08:56
#1

Sveiki, turiu problemėlę su paieškos panele.
Kodas :
echo "
<center>
<form name='search' action='search.php?stype=".$kas."' method='post'>
<input type='text' name='stext' class='box-s'>
<input type='submit' value='' name='search' class='myg-s'></form>
<br>
<input type='radio' name='kas' value='d'> D
&nbsp;&nbsp;
<input type='radio' name='kas' value='a'> A
&nbsp;&nbsp;
<input type='radio' name='kas' value='n'> N
<br><br></center>";




Kai paspaudi Ieškoti, išmeta į search.php?stype= (nedarašo raidės).
Gal kas galit patvarkyt koduką ir papostint čia ?
+11 už veikiantį.

Parašė avice· 2010 Rugp. 18 18:08:03
#2

tau reikia kad ismetu taip:
search.php?stype=abcabc
?

Parašė smart· 2010 Rugp. 18 19:08:37
#3

Radio keisk į kas, zDonai :D

Parašė zDon· 2010 Rugp. 18 19:08:46
#4

Avice parašė:
tau reikia kad ismetu taip:
search.php?stype=abcabc
?


Jop.
Smartai, bandysiu :D

Parašė avice· 2010 Rugp. 18 19:08:13
#5

tai pakeisk post i get . jei tau to reikia

Parašė avice· 2010 Rugp. 18 19:08:02
#6

bandyk:
<form name='search' action='search.php' method='get'>
<input type='text' name='stext' class='box-s'>
<input type='submit' value='' name='search' class='myg-s'></form>



Parašė Kižas· 2010 Rugp. 18 20:08:52
#7

Gal tiks šitas kodukas:

openside("Paieska");
echo "<form id='searchform' name='searchform' method='get' action='".BASEDIR."search.php'>\n";
echo "<input type='text' name='stext' value='".urldecode($_GET['stext'])."' class='textbox' style='width:150px' />\n";
echo "<label><input type='hidden' name='stype' value='news'".($_GET['stype'] == "news" ? " checked='checked'" : "")." onclick=\"display(this.value)\" /></label><br>\n";
echo "<input type='submit' name='search' value='Search' class='button' /> &nbsp;<input type='reset' name='reset' value='Reset' class='button' />\n</form>\n";
closeside();
?>



Parašė deron· 2010 Rugp. 18 20:08:03
#8

irmux112 ar nematai, kad "zDon" papostino kodą ir jis nori, kad jį ištaisytumėm, o ne bevertes paneles dėtumėm.

Parašė Kižas· 2010 Rugp. 18 20:08:08
#9

deron, aš daviau kaip pavizdį veikiančią panele, sakau gal tiks:|

Parašė zDon· 2010 Rugp. 18 23:08:11
#10

Man reikia, kad kas nors pataisytų kodą (maniškį). Nes man reik, būtent tokio, kokį įdėjau tik veikiančio.