|
-
Feb 11th, 2012, 10:24 AM
#1
Thread Starter
Fanatic Member
PHP submit from same page ?
ok I'm learning PHP from scratch.. and I'm no expert in HTML either.. here is what I'm trying to do.. looking for best approach..
website to ask some questions in banks of like 5.... to a table would have like 5 questions on it.. and first data in the row would have a submit button to then
capture all those answers to mysql db..
now I kinda know how to make code take the data on the submit for a POST and then pass to a php page that can push to mysql.. but I dont want to go
off that page.. in all the examples I see.. and have tested when you make the
action the php page.. it comes up a blank page and does what the php page
says to do.. is there a way to run the php script and stay on the same page ?
I guess worst case I can make it flash thanks from the php page but then reload the last one ? I have seen some posts where they say to make the action blank.. but I keep getting errors on the page.. I assume I'm mixing my HTML and php wrong on my page..
any examples someone can give me ? or a website to visit for some good info ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|