Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,151,653 members, 7,813,200 topics. Date: Tuesday, 30 April 2024 at 08:35 AM |
Nairaland Forum / Science/Technology / Programming / Help On loading Modal Form After Inserting (PHP) (281 Views)
Bootstrap Modal Not Working. / How Can I Get A Modal To Show Success After Form Submission In Php / Help On Master Code (2) (3) (4)
Help On loading Modal Form After Inserting (PHP) by walterjnr(m): 5:14pm On Dec 31, 2020 |
Please i need help on loading Modal form after Inserting data to database Here is a screenshoot of my code
|
Re: Help On loading Modal Form After Inserting (PHP) by biden123(m): 5:57pm On Dec 31, 2020 |
walterjnr:Mumu man. LA teach LA die |
Re: Help On loading Modal Form After Inserting (PHP) by Karleb(m): 9:31pm On Dec 31, 2020 |
walterjnr: I don't know what you're trying to do. Why did you loop through the $userCount which actually gets 'qty' to insert into inventory table? Why echo script tags rather than normal html? Besides, you should be using mysqli_real_escape_string method after sanitizing your data. Dumping $_POST global into database isn't safe. |
Re: Help On loading Modal Form After Inserting (PHP) by stanliwise(m): 10:01pm On Dec 31, 2020 |
walterjnr:Oga please be detailed with your problem, more that pictures seem not to be clear atleast on my phone. Meanwhile I don’t see why you should have PHP do the echo work. This sort of thing is quite Simple. Use JS to send the request to your PHP script to and when it is done then trigger the modal. In other words you should learn AJAX. JQuery will come very handy here. Send a POST request using JS and if the response it successful then trigger the modal. 2 Likes |
(1) (Reply)
Resolved already / Black-box Testing / Fully Funded European Business University (EBU) Scholarship
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 7 |