Skip to content

Tag: php

error while passing input value to the next page

below is the original code, and the asd.php I made html file and php file, and I tried to get response from the survey and try to show it in the next page(asd.php) However, when I input and surf the next page, it shows pure code like the picture. What did I do wrong? Answer You have to use the

How to refer to the second occurrence of a string in php?

I’ve been trying to replace my second occurrence for a certain character For Example: Hey, I’m trying something With PHP, Is it Working? I need to get the position of the second comma, I’ve tried to use strpos but in vain because it’s define that it finds the first occurrence of a stri…

How to add a line break in brackets and braces JSON PHP file?

I have the following code that generates data in json php: Obtaining the following result: But I need to be able to get a line break between the bracket and another line break for each brace, like this: As this json data output is shown, what changes should I use in my PHP JSON code to obtain the same result.