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?

Edited by ryanmetzler3
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.