Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Wysyłanie $_POST w linku lub header'em
Athlan
post
Post #1





Grupa: Developerzy
Postów: 823
Pomógł: 12
Dołączył: 18.12.2005

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


Mam problem.

Normalnie stronie się przesyła dane $_POST formularzem o metodzie POST. Ja chciałbym wysłać takie zmienne poprzez kliknięcie w link lub natychmiastowym przejściem:

  1. <?
  2. $mailik = "mail@op.pl";
  3. $haselko = "pass";
  4.  
  5. header("Location: http://poczta.onet.pl")
  6. ?>


Chodzi mi o automotyczne logowanie na zmiennych, które podaje wcześniej (j/w).

Przoszę o pomoc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

--EDIT--

Znalazłem takie coś:
  1. <a href="..." onclick="if (confirm('Are you sure?')) { var f = document.createElement('form'); this.parentNode.appendChild(f); f.method = 'POST'; f.action = this.href; f.submit(); };return false;">blebleble</a>


ale jak wysłać headera?

--EDIT2--

Jestem ślepy czy nic tu (http://pl2.php.net/manual/pl/function.header.php) nie ma ?

Ten post edytował Athlan 28.04.2006, 18:29:53
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: 23.08.2025 - 06:18