Skip to content
Advertisement

Tag: forms

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 my PHP page to go

toggle (enable/disable) between two divs in user form

I’m new in JavaScript (not familiar yet with jquery) and I’m trying to insert some logic into my form. I want to be able to give the user the option to choose between two options (in my example: option_1 OR option_2) and soon the user insert some text to option_1 I want all sub-options in option_2 to become disabled, and

How to get input from form using PHP/Jquery live?

I have a simple HTML form that includes an input field and a submit button. How can I use JQuery to get the text from the input field live and then send that data to a PHP file that evaluates the data? Form: Edit: here’s what I want it to look like Answer Your current code doesn’t need jquery to

Advertisement