Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> POST nie działa
xlinksysx
post
Post #1





Grupa: Zarejestrowani
Postów: 17
Pomógł: 0
Dołączył: 18.05.2009

Ostrzeżenie: (0%)
-----


Dlaczego nie przesyła mi danych POST'em? Mam taki kod:

  1. <form action="" method="POST" id="LoginForm">
  2. <div>
  3. <input type="text" name="user" class="input1"><input type="password" name="password" class="input2">
  4. <a href="" class="link" onclick="document.getElementById("LoginForm").submit()"><span><span>Zaloguj się</span></span></a>
  5. </div>
  6. </form>


Wiem, że wina leży w submicie - jak zrobić, aby link był submitem?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Quantum
post
Post #2





Grupa: Zarejestrowani
Postów: 450
Pomógł: 84
Dołączył: 27.11.2008
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


  1. <form action="" method="POST" id="LoginForm">


Cytat(xlinksysx)
LoginForm - nazwa forma


id - identyfikator,
name - nazwa.

zmień na
  1. <form action="" method="POST" name="LoginForm">


i wysyłasz :

  1. <a href="" class="link" onclick="document.LoginForm.submit()">
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 30.09.2025 - 07:51