BlackBoard (http://www.black-board.net/index.php)
- Design, Programmierung & Entwicklung (http://www.black-board.net/board.php?boardid=55)
-- Webdesign (http://www.black-board.net/board.php?boardid=19)
--- Link auf Seite durch Formulardaten anpassen (http://www.black-board.net/thread.php?threadid=21766)


Geschrieben von SpL!T am 20.01.2006 um 19:38:

  Link auf Seite durch Formulardaten anpassen

Hi,

Folgender Link würde ich gerne durch ein Formluar variabel machen und zwar mit folgendem Formular:

http://www.battle.net/war3/ladder/w3xp-player-profile.aspx?Gateway=***VARIABEL1***&PlayerName=***VARIABEL2***

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
<form name="form1" method="post" action="http://www.battle.net/war3/ladder/w3xp-player-profile.aspx?gateway=***VARIABEL1***&playername=***VARIABEL2***">
      <table width="170" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div align="center"><br>
            Profile
            <br>
            <input name="***VARIABLE1***" type="text" size="15">
            <br>
            <select name="***VARIABEL2***">
              <option>Europe</option>
              <option>U.S. East</option>
              <option>U.S. West</option>
              <option>Asia</option>
            </select>
          <input type="submit" value="go"> </div></td>
        </tr>
      </table>   
      </form>


Der Link soll dann dementsprechend die im Formular angegebenen Felder (hier: VARIABLE1 und VARIABLE2) durch VARIABLE1 bzw VARIABLE2 ersetzt werden.

Folgendermassen hab ichs momentan und dachte eigentlich, es müsste so funktionieren, tutu es aber nicht.

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
 <form name="form1" method="post" action="http://www.battle.net/war3/ladder/w3xp-player-profile.aspx?gateway=gateway&playername=profile">
      <table width="170" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><div align="center"><br>
            Profile
            <br>
            <input name="profile" type="text"size="15">
            <br>
            <select name="gateway">
              <option>Europe</option>
              <option>U.S. East</option>
              <option>U.S. West</option>
              <option>Asia</option>
            </select>
          <input type="submit" value="go"> </div></td>
        </tr>
      </table>   
      </form>



Geschrieben von LX am 20.01.2006 um 19:53:

 

Vielleicht solltest du dir erstmal verdeutlichen, was HTTP_POST und HTTP_GET sind und was für Unterschiede es gibt (clicky).

Was du da versuchst, haut sowohl syntaktisch, also auch sinnig nicht hin. Dein Formular sendet seine Daten mittels POST, haben willst du sie aber via GET. Entscheide dich für eins von beidem (bei Formularen wird das meist POST sein), und setze das dann um. Beispiel:

code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
<form method="post" action="http://www.battle.net/war3/ladder/w3xp-player-profile.aspx">

  <input name="profile" type="text" size="15" />

  <select name="gateway">
    <option value="euro">Europe</option>
    <option value="usae">U.S. East</option>
    <option value="usaw">U.S. West</option>
    <option value="asia">Asia</option>
  </select>

  <input type="submit" value="go" />

</form>



Geschrieben von SpL!T am 20.01.2006 um 21:17:

 

thx problem gelöst


Forensoftware: Burning Board 2.3.6, entwickelt von WoltLab GmbH