Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML]form action w linku
flaq1991
post
Post #1





Grupa: Zarejestrowani
Postów: 89
Pomógł: 0
Dołączył: 11.12.2012

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


Da radę w tej formie zamiast buttona zrobić zwykły link <a href ? tak aby wykonowyał akcję tak samo jak button ? proszę o pomoc z góry dzięki

  1. <form action="logowanie.php" method="post" >
  2. <input type="hidden" name="loginname" size="30" maxlength="30" value='.$r['login'].' readonly="readonly" target="blank">
  3. <input type="hidden" name="loginpassword" size="30" maxlength="30" value='.$r['haslo'].' readonly="readonly">
  4. <button type="submit">Zaloguj</button>
  5. </form>
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
aras785
post
Post #2





Grupa: Zarejestrowani
Postów: 859
Pomógł: 177
Dołączył: 29.10.2009

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


Chwilę czasu i zrobiłbyś ze stylami. Na siłę można:D

  1. echo '<a href="logowanie.php?loginname='.$r['login'].'&loginpassword='.$r['haslo'].'">Zaloguj</a>';


Ale nie polecam:D

Ten post edytował aras785 4.01.2013, 14:41:06
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.12.2025 - 14:30