Hey there ,
im trying to split my page into 3 columns (center, right and left) using the holy grail method, so far if i enter a php script and a form intomy right orleft column everything goes fine , but as soon as i enter a form into my center column , the left colum echoes its form in the center column … ive triedeverything (well i think i have) but it just wont work with me this is my form :
[code]
<?php
$form3 = "
heyasdasdasdasd |
";
echo $form3;
?>
<?php
if( $_POST[‘submit’] ){
$getcuser = $_POST[‘cuser’];
$getnuser = $_POST[‘nuser’];
$getpass = $_POST[‘pass’];
if($getcuser){
(…loads of other stuff …)
else
$errormsg1 = “Please enter your current username”;
}
$form1="
Change Username:
$errormsg1
Current username: |
|
|
New username: |
|
|
Password: |
<input type='password' name='pass' |
|
|
";
echo $form1;
?>
<?php
if( $_POST['submit1'] ){
$getusername = $_POST['username'];
$getpass = $_POST['pass'];
$getnewpass = $_POST['newpass'];
$getrnewpass = $_POST['rnewpass'];
(...loads of other stuff...)
else
$errormsg = "Please enter your username!";
}
$form2="
Change Password:
$errormsg
Username: |
|
|
Current password: |
|
|
New password |
|
|
Please re-enter your new password |
<input type='password' name='rnewpass' |
|
|
";
echo $form2;
?>
[/code]
and heres my css:
[code]#container {
padding-left: 280px; /* LC width /
padding-right: 300px; / RC width /
}
#container .column
{
position: relative;
float: left;
}
#center {
width: 100%;
padding-bottom: 210px; / X + padding-bottom /
margin-bottom: -200px; / X /
}
#left {
width: 200px; / LC width */
margin-left: -100%;
}
#right {
width: 200px; /* RC width /
margin-right: -200px; / RC width /
}
#footer {
clear: both;
position:relative;
width: 100%;
}
/** IE6 Fix ***/
- html #left {
left: 200px; /* RC width */
}[/code]
Obviously im trying to display my center column and form in the middleof my page but my left column just keeps jumping in and destroying the whole set.