Jump to content

Несколько get переменных


HooLIGUN

Recommended Posts

Вопрос возможно нубский, но чет не могу понять в чем проблема

Делаю несколько переменных через get запрос. Пишу так

Ссылка: /scritp?type=10&id=6275

PHP:

echo  $_GET['type'].'<br>'.$_GET['id'].'<br>';

Результат:

10&amp;id
6275

Что за фигня, почему добавляется это &amp;id ?

 

Влепил костыль конечно, но вопрос почему так остался))

echo substr($_GET["type"],0,-11);

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...