leachus2002 Posted March 10, 2011 Share Posted March 10, 2011 Hi Everyone, I have a training package that was developed by one of our departments, and I want to intregrate PHP into it so that it can post results of an exam to a DB. Basically, the way that it get's the score to the screen currently is to store the "score" value into a JS variable, and send it to screen using a <DIV ID='Score'> tag. Is there any way that I can extract the information out of that DIV tag into a PHP variable with just the score? I have tried: $score = '<div id="score"></div>' However, this brings the whole tag into the DB. Help is appreciated Thanks Matt Quote Link to comment https://forums.phpfreaks.com/topic/230192-working-with-javascript/ Share on other sites More sharing options...
leachus2002 Posted March 22, 2011 Author Share Posted March 22, 2011 Hey All, Have been looking into this for a week or so now without any luck - any ideas out there? Thanks Matt Quote Link to comment https://forums.phpfreaks.com/topic/230192-working-with-javascript/#findComment-1190753 Share on other sites More sharing options...
MrXHellboy Posted March 22, 2011 Share Posted March 22, 2011 If you want to extract info from HTML output, stored in a variable, before the headers are sent, you might use PCRE. But i dont get exactly what you want. Quote Link to comment https://forums.phpfreaks.com/topic/230192-working-with-javascript/#findComment-1190754 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.