₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,347,921 members, 8,529,859 topics. Date: Friday, 04 December 2026 at 05:41 PM

Toggle theme

Help On loading Modal Form After Inserting (PHP) - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Help On loading Modal Form After Inserting (PHP) (388 Views)

1 Reply (Go Down)

Help On loading Modal Form After Inserting (PHP) by walterjnr(op):
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:
Please i need help on Displaying Modal form after Inserting data to database


Here is a screenshoot of my code
Mumu man.

LA teach LA die cool
Re: Help On loading Modal Form After Inserting (PHP) by Karleb(m): 9:31pm On Dec 31, 2020
walterjnr:
Please i need help on loading Modal form after Inserting data to database


Here is a screenshoot of my code
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:
Please i need help on loading Modal form after Inserting data to database


Here is a screenshoot of my code
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.
1 Reply

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

App Creator Without Coding • Mobile App Dev Needed Urgently • What To Do When You Can't Afford To Buy Online Courses