Hello I am a noob in php. But I have something like this:
<div id="signupbox">
<!--A lot of stuff-->
</div>
so I have a php script just above this is check if a $get variable is activation_success
, so I would echo a javascript to find #signupbox and change innerHTML, but I also want to include a file called login.php
inside #signupbox.
The question is if I changed the div's innerHTML using javascript, the included .php file will also disappear.
In what way can I change the innerHTML and include a .php file inside?
I wanted to include login.php
file because it is like a snippet so I can include it somewhere else and if I wanted to change, I can change the included file.
What I kinda what to do is echo('<script>$("#signupbox").html("Thank you!");</script>' . include("login.php"));