Skip to content

$_SESSION is echoing when it shouldn’t?

im doing a a basic form where the user enters data, it has three php pages, one with the html stuff, second one with the a class called registration, the third one is called validation.php it has the error handlers. if the user typed something wrong, i want to display an error on the same page, that’s w…

Query string keeps appending but it shouldn’t

So my problem is when i send an email with a link to reset the password the query string gets appended each time. For example: 99cb65f44c7acf7f80610e92358ca7ce006b852fb9d7be716154c0fe5a954867b87a4b281a7b42f5208dbbbac0a6d3de7444575b41b6a307a2fdd00e3b6d2cae <= First query string as i want to have it Then whe…

Remove characters from beginning and end string

I want to ouput only MYID from URL. What I did so far: output: https://whatever.expamle.com/display/MYID ouput: MYID?out=1234567890?Browser=0?OS=1 How can I combine this? Thanks. Answer When the string is always a Uniform Resource Locator (URL), like you present it in your question, given the following string…

How can I get date day by day?

I’m beginner in PHP and I’m trying to learn. I want to get the date of the next four days in Laravel. I tried like this but it returns the date four days later. I want to take all the next four days. How can I show all the next four days in the blade? Answer I hope this will