Jump to content

include ' '; in html form


ryanmetzler3

Recommended Posts

I have the following html form: 

$form = "<div id='forms'><form action='login.php' method='post'>
		<table class='forms'>
			<td>Username:</td>
			<td><input type='text' name='user'/></td>
		</tr>
		<tr>
			<td>Password:</td>
		        <td><input type='password' name='password'/></td>	
		</tr>
			<td></td>
			<td><input type='submit' name='loginbtn' value='Login'/></td>
		</tr>
		<tr>
		        <td><a href='register.php'>Register</a></td>
			<td><a href='forgotpass.php'>Forgot Password?</a></td>
		</tr>
		</table>
	</form>
</div>";

It is inside an if/else statement. And you notice I have it set to the php variable "form". The whole form floats left on my webpage. I want to put a small text ad to the right of it, but not on a new line. I have the JS ad saved to a file called smallad.php. So I was going to include "smallad.php"; inside a <td></td> tag in one of the rows of the form. But that does not work. Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/281934-include-in-html-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.