![]() |
problem with variable not being passed
hi people,
what the hell is wrong with this code ? PHP Code:
$vbullein->GPC['ban'] (doesn't work) $_GET['ban'] (works but that's against the coding standards) it's an $_GET so the first parameter should be g (short from get).The strange thing is that the same code works fine in another method(yes the verry same code) why ohhh why :devious: |
Quote:
|
1 Attachment(s)
Quote:
PHP Code:
[high]* Delphiprogrammi is a shamed about the typo[/high] hi people, Look here you can see what i mean in the attach screengrabs. i totally don't get it |
it works for me :confused:
?act=completeremove&ban=hello displays : hello |
Quote:
|
Are you sure you are using GET vars?
How is this field passed/submitted to this scrips? |
Quote:
PHP Code:
PHP Code:
|
Well that still don't answer my question. :D
What is the (HTML) source of the page that submits the act=completeremove. |
Quote:
HTML Code:
<input type="hidden" name="temp_ban" value="" /> (act=completeremove) |
That is not the code for the "ban" variable (but temp_ban). Please post the whole <form> </form> block.
|
Quote:
this html is what you see when you goto the deleteform (completeremoval) right muis click => view source HTML Code:
<form action="admin_warn.php" name="cpform" method="post"> HTML Code:
<form action="admin_warn.php" name="cpform" method="post"> |
you are using the post method ... it should be 'p' and not 'g'
|
Quote:
problem solved don't ask me why but if you change p to g in all clean_array_gpc() class all is returned as it should |
I am sorry but your code is very confusing:
- You are using the post method, but are retrieving Get variables - You are submitting 'temp_ban' but want to retrieve 'ban' - You are submitting with do=do_completedelete, but you are checking the value of 'act' - 'act' is not defined on that form. Looks like you are mixing up things. This form don't seem to belong together with the php that should handle it. |
All times are GMT. The time now is 09:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|