Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [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
aras785
post
Post #2





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

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


A po co? Zmień style jeśli chcesz uzyskać taki efekt smile.gif Lub
  1. <button type="submit"><a href="">Zaloguj</a></button>
biggrin.gif
Go to the top of the page
+Quote Post
flaq1991
post
Post #3





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

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


Style właśnie nie ogarniam za bardzo biggrin.gif ale mniej więcej kumam, chodziło mi oto żeby zamiast buttona który wykonuje akcja tej formy wykonywał ją link zwykły a href
Go to the top of the page
+Quote Post
aras785
post
Post #4





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
flaq1991
post
Post #5





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

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


Getem nie przejdzie haha.gifD ale sprawdze inny sposób biggrin.gif mam pewien plan heh
Go to the top of the page
+Quote Post
CuteOne
post
Post #6





Grupa: Zarejestrowani
Postów: 2 958
Pomógł: 574
Dołączył: 23.09.2008
Skąd: wiesz, że tu jestem?

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


http://www.javascript-coder.com/javascript...rm-submit.phtml
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 21.08.2025 - 19:23