Jump to content

Can i style a form into a div?


dreamwest

Recommended Posts

Can i style a form into a div?

 

Currently i have lots of these in my page

 

<div id="web" class="web" align="center">
<form name="form1" method="get" action="search.php">
<input name="search" type="text" id="search" value="" size="60">
		<input name="type" type="hidden" id="type" value="web">
		<input class=search type="submit" name="Submit" value="Web Search">

		</form></div>

 

I want to just add the following to the page and have the rest in a .css file

 

<div id="web" class="web" align="center">
</div>

 

Im not sure how to go about it...

Link to comment
Share on other sites

Yea. In case you are wondering how to do that dreamwest you put that form in a file on your server then in the place in the code you want to insert it you do

 

<?php

include('addedform.php');

?>

 

assuming you added your  form into a file named addedform.php

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.