Hi,

I have a PHP/Javascript page and I need to POST code to the same page in which it is posting from. It posts correctly and PHP picks up the information but the javascript code that deals with certain objects won't run again. I actually have to POST to the same page, do the php stuff, then refresh it to have the javascript work. Why is the javascript not running again after the post?

Thanks

Don't understand the scenario. If you:

1) serve somepage.php with a form on it
2) the form's action tag is set to "somepage.php"
3) user fills the form, submits it
4) somepage.php runs on the server, processes the form and then
5) generates the same html/css/scripts/form as in step 1, then:

Everything should be fine!

Sorry for this thread. It ended up being a problem relating to php waiting for linux to give a return code.

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.