Make "Submit" Button send info to mysql - php

I want to make a submit button without any textfields etc send the text "confirmed" to my "submit" column in mysql.
Its a text on my page that they read and when they press "submit" I want this information in my database that they have confirmed. I have seen videos etc when people have textfields "email" "password" etc and when they press submit they get that text info. But how would I proceed if I want the text "confirmed" to send to my database when they press the button?
when they press submit they should redirect to loading.php and I have fixed that but because the "submit" column doesnt get info in Mysql they return to mypage.php instantly
im using ajax, php and mysql

Related

on clicking the edit button how to extract only those textboxes which are filled in php

on clicking the edit button how to extract only those text boxes which are filled in php.
I have altogether 6 fields:id,type,caption,path,dynamictext,time.
On clicking edit button if type=0 then it need to extract id,caption,path and time.
On clicking edit button if type=1 then it need to extract id,caption,dynamictext and time.
Since when clicking on edit button if type 0 the dynamictext field is empty and likewise the path is empty if i click on edit button.
How can i extract only the filled textbox?????Please help me.

PHP AJAX fields value from previous page

I have form in which fields come through AJAX and i fill those fields and send it to next page. When i send it to next page their are two option either edit or submit. When i click on edit button value go to the first page and value display in fields but AJAX field and it's values not appear. How I show AJAX field and it's value in first page?

form submission from mail

I create a form and send it as a mail. Can I possible to submit that form from gmail.
My form contain an option button and one submit button. When I click the submit button, i will have to store the option button value to the database. Is it possible?
Due to variations between email clients, you can consider <form>s in HTML formatted emails to be a no-go area. Link to a form on a website instead.

I made a register form for my site but when I run it and you press enter on the last box(the email box) it doesnt submit the info

So I am making a site on dreamweaver and I cant figure out on my register page how to make it so when you press enter on the last box you need to fill in (email box) that it will automatically submit the info... instead it just deletes the stuff in that box... The only way to submit it is by actually pressing the submit button... anybody know how to do this? Thanks alot
Sounds like a tab order issue to me, make sure the submit is in the tab order right after the last input box. Also, you could do as the other suggested and use javascript to fire submit form event when the enter button is pressed.

Implementing a preview button for a form and keeping the form data after clicking the button

I have a form with a wysiwyg editor and I would like to add a preview button so the user can see how the content would look like in the website.
In order to do this I inserted another submit button wich gets the info from the form and redirects to a preview page.
All ok, but after clicking that button the form content disappears so the user can see a preview but it has no data in the actual form in order to make some changes or to submit the form in order to save the data.
So here's my question: can I have this preview button and also keep the data in the form after clicking the preview button?
What you need is either:
Repopulate the form from the preview function (that means manually fill in the form with the submitted data)
OR
Use Ajax to submit the form to the preview function and keep open the current edition page.
By the way, you can't have two submit for one form.

Categories