Skip to content

Contact Form Stuck in Validation

I am trying to get a contact form up and running for a portfolio website. I understand design, but have a very limited understanding of development/server side issues. The form functions as expected, BUT when submitted the form returns “..sending” and things stop there. I do not receive an email, …

PHP: CURL fails to save cookie

I am using PHP from one host to connect to the API of another on the same subnet, which requires cookies to remember the login. It gives me a WARNING: failed to save cookies in /var/includes/cookie. I set up a short test script for myself as follows: The verbose log file gives me this output: The contents of …

Placing a dash for each identical word (regex, php)

Please tell me if it is possible to make a search for all identical words through rejax and insert a dash between them until such a word is no longer the next in the sentence. Example here: https://regex101.com/r/1GQiQ8/2 My regex: Sample text: How it should be: How does it work now: Answer You can use Replac…

How to display error message with php after form submit

Hello everyone i am building a project with php where do i want to display error message on form submit with php but the problem is i am unable to do that my page gets reloads and the message doesnot shows. Below i am pasting the codes please help me how to do that. Form part php codes Answer you

Laravel ajax passing data to php

I have a special problem. I am making an Ajax request to get data from the db without updating. The response I get should be outputted in a advanced way like this: Right now I get the correct response from the Ajax request. But how do I output it like that, with the include also and it should appear many

AJAX pagination, update current page

I created a numeric pagination that loads the data via AJAX. This is the code: The code works, but when I refresh the page the data are loaded again from the first page. test_ajax Ex: If I click the button that loads the page 2 when I refresh the page the data are displayed from the page 1. There is

Comparing a JSON file and a PHP file

First Post, any help is appreciated. I have a PHP file (Array) with data from a database, which i need to compare to a JSON file (Object). By looking through forums i have seen stuff about jQuery and AJAX requests, so i was thinking maybe i need to use those for my solution. The PHP Array and the array goes

HTML Form stops working when I add another form

I have a php function echo out a form if specific parameters are met and everything was working perfectly. After I added the a few more forms under the original form (the php code is almost identical if it matters and the action parameter goes to the same file for them all) the forms above the most recently a…