M
M
maiskiykot2018-04-15 14:44:53
PHP
maiskiykot, 2018-04-15 14:44:53

Why is part of the GET request lost?

As usual, a problem awaited me, which did not exist before. Its essence is as follows:
I pass a get-request like ?code=32.20 to the php script. If the end is not zero, then everything is correctly transmitted, if 0, then it disappears from the request. Question: what needs to be done in order not to disappear?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
maiskiykot, 2018-04-15
@maiskiykot

It turned out that the direct comparison $_GET['code'] == $str did not work. Helped strcmp(get, str)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question