Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

T_CONSTANT_ENCAPSED_STRING


lainieeee

Recommended Posts

<?php echo '<style type="text/css"> body {backgroud-color: <?phpecho ''.$_POST['bgcolor'].'';?>;

background-image:url <?phpecho ''.$_POST['bgimage'].'';?>; background-position:<? echo ''.$_POST['bgposition'].'';?>; background-attachment: <? echo ''.$_POST['bgmovement'].'';?>; background-repeat:<? echo ''.$_POST['bgtiled'].'';?>;} Table, Td { background-color:transparent; border-style:none; } table table td { width:100%; } table table table table td { width:auto; }

 

 

can someone tell me whats wrong with this?

this is only part of it.

Link to comment
Share on other sites

<?php echo '<style type="text/css"> body {backgroud-color: <?phpecho ''.$_POST['bgcolor'].'';?>;

background-image:url <?phpecho ''.$_POST['bgimage'].'';?>; background-position:<? echo ''.$_POST['bgposition'].'';?>; background-attachment: <? echo ''.$_POST['bgmovement'].'';?>; background-repeat:<? echo ''.$_POST['bgtiled'].'';?>;} Table, Td { background-color:transparent; border-style:none; } table table td { width:100%; } table table table table td { width:auto; }

 

 

can someone tell me whats wrong with this?

this is only part of it.

 

 

What is wrong with it is that it is garbage, someone messing with php who doesn't understand it.

 

Below may give you some ideas ..

 

<?php header("Content-type: text/css"); ?>

body { 

 backgroud-color: <?php echo $_POST['bgcolor']; ?>;

 background-image: url(<?php echo $_POST['bgimage']; ?>);

 background-position:<? echo $_POST['bgposition']; ?>;

 background-attachment: <? echo $_POST['bgmovement']; ?>;

 background-repeat:<? echo $_POST['bgtiled']; ?>;
}

Table, Td { 
 background-color:transparent; border-style:none;
} 

table table td { 
 width:100%; 
} 

table table table table td { 
 width:auto; 
}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...