Skip to content

Tag: php

PHP cURL post data is not sent to target url

Maybe it’s duplicate question. I have tried any solution with similar question with mine that I can find and implemented it to my probs, not a single solution is work. I need to use PHP curl to get data from other systems (B). But in the B the data I sent is not defined or no data was sent. curl

How to replace YEAR and MONTH to the current figure?

The function is to display a randon image from the folder 2021/01 Since the time is changing every month, how to change it in the first line? To make 2021/01 display the current year and month? For example, next month it will change to <?php $randomdir = dir(‘wp-content/uploads/2021/02’); Answe…

PHP POST method Form Redirecting on action Page

I have created a simple HTML Form With Action on Different Website After form data submission user is redirecting to action page but I want user stay on my website and form data go on another website..please help me here is sample form Answer Use an iframe, and submit the data to that, using target=”ifr…

pagination show an extra page

I am currently doing a paging system and I have an error that the “NEXT” button continues to work despite having reached the last page, when clicking this it takes me to an extra page without content. The “next” button should disappear on page 2 but it is continuous and sends me to pag…

Code randomly choosing div class after else

I have my first half of the code which is supposed to be post with thumbnail in classes. One is class item a and other is class item b. But after “else” the code takes the same class item a even if I haven’t put it around the code. Why does this happen? The first article is with thumbnail an…