Skip to content

Tag: php

PHP go to another page and getElementById

I have 2 pages HTML page with a form PHP action page for the form Based on this, if everything is successful with the form submission, I want to go back to the first page and open up a modal using document.getElementById. I know to do this, I would need the header(“Location: blabla”) function in m…

<input type="text" assign id value to php string

I have a modal form to write employee working time stamp to an SQL database. I select the employee from a dropdown menù and fill by javascript function the name and surname input box using the id tag. When I submit the form, the datas are written into the db using php. The problem is I’m not able to con…

How to handle form submitted with JQuery

I have a multistep form. I’m validating each step with Javascript before submitting it to PHP. If the form’s last step passes validation tests. I’m submitting the form. like so I want to handle form submission with Javascript and submit it to PHP with Ajax. but instead, the page refreshes. A…