Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]funkcja implode i warning
john_doe
post 1.07.2009, 17:11:51
Post #1





Grupa: Zarejestrowani
Postów: 873
Pomógł: 25
Dołączył: 24.07.2005

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


Wita,

Warning: implode() [function.implode]: Invalid arguments passed in C:\wamp\www\shopNew\editExec.php on line 6

dostaję taki komunikat gdy

mam formularz
  1. <form method="POST" action="editExec.php">
  2.  
  3. <input type="text" name="updateTab[]" value="1" />
  4.  
  5. <input type="text" name="updateTab[]" value="1" />
  6.  
  7. <input type="submit" value="zmien" name="edytuj" />
  8.  
  9. </form>


i gdy chcę

  1. <?php
  2. $comma_separated = implode(",", $POST[updateTab]);
  3.  
  4. echo $comma_separated; // lastname,email,phone
  5. ?>


warning
Powód edycji: [Spawnm] dodałem tag
Go to the top of the page
+Quote Post
Maxik
post 1.07.2009, 17:15:22
Post #2





Grupa: Zarejestrowani
Postów: 726
Pomógł: 129
Dołączył: 10.01.2008
Skąd: Gdańsk

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


$POST['updateTab']


--------------------
Pomogłem? Kliknij przycisk Pomógł pod pomocnym Ci postem.
http://maxik.me/
Go to the top of the page
+Quote Post
john_doe
post 1.07.2009, 17:18:42
Post #3





Grupa: Zarejestrowani
Postów: 873
Pomógł: 25
Dołączył: 24.07.2005

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


niestety tak już próbowałem sad.gif
Go to the top of the page
+Quote Post
batman
post 1.07.2009, 17:21:13
Post #4





Grupa: Moderatorzy
Postów: 2 921
Pomógł: 269
Dołączył: 11.08.2005
Skąd: 127.0.0.1




$_POST


--------------------
I would love to change the world, but they won't give me the source code.
My software never has bugs. It just develops random features.
Go to the top of the page
+Quote Post
Maxik
post 1.07.2009, 17:21:44
Post #5





Grupa: Zarejestrowani
Postów: 726
Pomógł: 129
Dołączył: 10.01.2008
Skąd: Gdańsk

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


$_POST['updateTab']
Wcześniej nie zauważyłem, że brakuje _


--------------------
Pomogłem? Kliknij przycisk Pomógł pod pomocnym Ci postem.
http://maxik.me/
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 Wersja Lo-Fi Aktualny czas: 16.07.2025 - 19:35