Autor | Zpráva | ||
---|---|---|---|
stepi15 Profil |
1.jde pres CSS zmeni styl textu u optgroup?
2.jak udelam formular s jednim polem input type='text' a s jednim polem type='submit' a do test napisu treba zdravim dam odeslat a vtom samem okne to nacte http://stranka.cz/zdravim 3. jak udelam podminku k $obsahstranky = file_get_contents("http://hiscore.runescape.com/index_lite.ws?player=$username"); kdyz se nepodari nacis soubor tak treba promena error bude neco |
||
Nox Profil |
#2 · Zasláno: 2. 6. 2008, 15:58:10
1) Ano, ale záleží na prohlížeči, obecně u formulářů není konzistence zobrazení nijak jistá
2) asi <form ... onsubmit="window.location.href='this[\"test\"].value'> nebo tak něco, ta adresace nevim jestli bude fungovat, případně přes document.forms["jmeno_formu"]["test"] nebo document.getElementById ...a možná to taky bude chtít nějak ošetřit 3) myslíš toto? if(!$obsahstranky){ echo "velký error!"; } |
||
stepi15 Profil |
#3 · Zasláno: 2. 6. 2008, 18:41:43
no kdyz nepude nacist ten soubor tak treba promena $error=soubor nenalezen
|
||
stepi15 Profil |
#4 · Zasláno: 2. 6. 2008, 19:04:01
a jak presne by byl ten formular?
|
||
stepi15 Profil |
#5 · Zasláno: 2. 6. 2008, 19:07:53
no udelal sjem to zajmave sice by to slo urcite jinak a jednoduseji ale takto to je dobry ne?
<form action="" method="post"> RuneScape Name: <input class='textbox' name="username" value="" type="text" maxlength="12" size="12"> <input class='button' type="submit" value="Look Up" name="sub"> </form> <?php if($_POST["sub"]=="Look Up") { ?> <script> window.location.href="http://rstools.scorpions.cz/index.php?link=hisco res&username=<?=$_POST["username"]?>"; </script> <?php } ?> |
||
Nox Profil |
#6 · Zasláno: 2. 6. 2008, 21:25:13 · Upravil/a: Nox
stepi15
"Upgrades" Neo ;) <?php if($_POST["sub"]) { Header("Location: http://rstools.scorpions.cz/index.php?link=hisco res&username=$_POST[username]"); } ?> <form action="" method="post"> RuneScape Name: <input class='textbox' name="username" value="" maxlength="12" size="12"> <input class='button' type="submit" value="Look Up" name="sub"> </form> |
||
Nox Profil |
#7 · Zasláno: 2. 6. 2008, 21:27:48
Ta mezera tam asi nemá být, co?
|
||
Časová prodleva: 16 let
|
0