Help On loading Modal Form After Inserting (PHP) - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Help On loading Modal Form After Inserting (PHP) (371 Views)
| Help On loading Modal Form After Inserting (PHP) by walterjnr(op): 5:14pm On Dec 31, 2020*. Modified: 9:15pm 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. |
Bootstrap Modal Not Working. • I Need Help On How To Avoid Burnout • How Can I Get A Modal To Show Success After Form Submission In Php • 2 • 3 • 4
Personal Training Scheduling Software - The Perfect Partner For Fitness Trainers • Any Registered App Developer Here? • PELSSA1000: Make Money Creating & Selling Digital Assets, Join The Club
