Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Wysyłanie metodą POST
Szendci
post
Post #1





Grupa: Zarejestrowani
Postów: 12
Pomógł: 0
Dołączył: 9.11.2008

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


Witam mam problem z modułem rejestracyjnym część kodu napisana jest w ajax i mam problem z przesłaniem zmiennych metoda post
  1. <?php
  2. var myAjax = new Ajax.Request(
  3.                        'register.php',
  4.                        {
  5.                method: 'post',
  6.                        parameters:             "login="+log+
  7.                                                "&haslo="+haslo+
  8.                                                "&mail="+mail+
  9.                                                "&token="+token,
  10.                        onComplete: showResponse,
  11.                onFailure: showAlert
  12.                        });
  13. ?>


Problem w tym że nie przesyła mi danych ;/ na krótko gdy zrobiłem tak jak poniżej " było dobrze" bo dane defakto przesyłały sie get.
  1. <?php
  2. var myAjax = new Ajax.Request(
  3.                         'register.php?login='+log+'&haslo="'+haslo+'&mail="'+mail+'&token='+token,
  4.                         {
  5.                 method: 'post',        
  6.                         onComplete: showResponse,
  7.                 onFailure: showAlert
  8.                         });
  9. ?>
Go to the top of the page
+Quote Post
korro
post
Post #2





Grupa: Zarejestrowani
Postów: 259
Pomógł: 42
Dołączył: 8.04.2005
Skąd: Mława

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


  1. <?php
  2. var myAjax = new Ajax.Request(
  3.                       'register.php',
  4.                       {
  5.               method: 'post',
  6.                       parameters: {
  7.                                             login=login,
  8.                                             haslo=pass,
  9.                                             mail=mail,
  10.                                             token=token
  11.                                          },
  12.                       onComplete: showResponse,
  13.               onFailure: showAlert
  14.                       });
  15. ?>


--------------------
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: 19.08.2025 - 22:15