Jump to content

POST problem


Minase

Recommended Posts

hy there im having a little problem with post =/ weird but its true

 

if i do have a value lets say

$a = Me.2;

 

just variable a value,if i use it into post the point ( . ) become underscore ( _ )

like $a = Me_2;

 

i cant use str_replace here..

if user have name like this

$a = ME_2;

... anyone know why this is happening ?

thanks

Link to comment
https://forums.phpfreaks.com/topic/128180-post-problem/
Share on other sites

i do fetch some usernames from mysql DB

echo "<tr><td> $s[username] : $s[LastIP] <input type='checkbox' name='$s[username]' value='ban'></td></tr> \n";

 

 

this is what i echo on the page

i use foreach ($_POST as $a => $b)

 

to take every post

i do something like

 

if $b == ban then

echo $a

 

but if $a contain a point it become underscore =/ thanks

Link to comment
https://forums.phpfreaks.com/topic/128180-post-problem/#findComment-663866
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.