How can I recode% D0% B8% D0% B3% D0% BE% D1% 80% D1% 8 into the word "Igor"?
Background: I installed a widget to access the site using the VKon VKontakte account. And he sends me in GET name, UID, last name, and a link to the picture. For example:
http://codeigniter.prodimport.pro/index.php/catalog?&uid=38039883&first_name=%C8%E3%EE%F0%FC&last_name=%CC%E0%E9%EE%F0%EE%E2&photo=http://cs304710.userapi.com/u38039883/a_1590df03.jpg&photo_rec=http://cs304710.userapi.com/u38039883/e_1b645ba4.jpg&hash=274e437d80873dc4fb6f2773b3d48e35 <?php $hash = $_GET['hash']; $uid = $_GET['uid']; $first_name = $_GET['first_name']; $last_name = $_GET['last_name']; $photo = $_GET['photo']; ?> <p>Ваш UID:<?php echo $uid; ?></p> <p>Ваше имя:<?php echo urldecode($first_name); ?></p> <p>Ваша фамилия:<?php echo urldecode($last_name); ?></p><br> <img src='<?php echo $photo;?>'>`
What he gives:
Ваш UID:38039883 Ваше имя: Ваша фамилия:
URLDECODE()
does not help, or I do not understand how to work with it ... please explain!
$_GET
already contains decoded strings. Re-useurldecode()
not necessary. What doesecho $_GET['first_name']
just print? And, for beauty,print_r($_GET)
please provide. - Sergiks