Hello.
I am trying to make a text box with the name as '$value'. I am trying to make a div change to whatever size you specify on the page with PHP. Here is my code:
Code:
<?php echo "<input name='$value' type='text' />
<div id='samplediv'>HELLO!</div>
<script type='text/javascript'>
document.getElementById('samplediv').style.width = '$value';
</script>
"; ?>
I know I'm doing a stupid mistake, I just do'nt know what. I'm a total PHP n00b, so please go easy on me 
|