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
https://forums.phpfreaks.com/topic/131065-can-i-style-a-form-into-a-div/
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

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.