Page 2 of 2

Posted: Wed Jul 09, 2003 11:36 am
by m3rajk
are you getting this via post?
if so it's in the url. just make sure that there's one place you could have an & and it's the last one.

then get the url, cut out everything but the last entry, run rawurldecode and do what you need then...

i don't know which server var name it is though, so you'll have to look that up

$url=$_SERVER['']; #get url
$url=preg_grep('/textarea_name=.*/i', $url);
$yrl=rawurldecode($url);

now you have just the last element

Posted: Wed Jul 09, 2003 5:56 pm
by bionicdonkey

Posted: Wed Jul 09, 2003 6:27 pm
by style
yes i'm getting info via post
however, i tested $_SERVER[''];
there no info about the data yet~

ya htmlspecialchars() is a very useful function~ thx
but it still cant slove the problem since it cant convert $_POST...