Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

include ' '; in html form

$
0
0

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?


Viewing all articles
Browse latest Browse all 13200

Trending Articles