I ordinarily submit data to my PHP script through a POST action that redirects the page, but I'd like to get Javascript to handle that so I stay on the same page.

You'll have to use AJAX. If you are using jQuery the .post() or .ajax() functions will do this: http://api.jquery.com/jQuery.post/

commented: my schedule prevents me from looking into jQuery now but thank you, I will read up on this +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.