Hi guys!
I'm still fresh on php and from time to time I hang on simple things. Well, this time I was trying to make an include with an onclick action but now I'm not even sure its possible the way I'm trying.
Here's the code (problem on line 18)
<body style="vertical-align:middle">
<div id="storage" style="display: none;"></div>
<form action="req.php" method="post"></form>
<table border="1" align="center" cellspacing="1">
<tr>
<td><table border="0" cellpadding="4" cellspacing="1" style="height:20px">
<tr>
<td><label>Name: </label></td>
<td><input name="Name" type="text" width="200px"/></td>
</tr>
<tr>
<td><label>Password: </label></td>
<td><input name="Password" type="password" width="200px" /></td>
</tr>
<tr>
<td height="10"><label style="color:#09F; font-size:9px;" onclick="document.getElementById('form').innerHTML ='<?php include('Login/register-form.php'); ?>'"><u>Not registered?</u></label></td>
</table>
</td>
</tr>
<tr>
<td height="40" align="center"><input type="submit" value="Login" name="submitButton" style="width:100px"/></td>
</tr>
</table>
<div> </div>
<table style="height:20px" align="center">
<tr>
<td id="form" style="border:none" width="200px" > </td>
</tr>
</table>
</body>
I dont really know what I'm missing, maybe it just doesnt work this way. I'd appreciate any hints
Thanks for reading