Created
January 30, 2014 09:16
-
-
Save gregbarcza/8705117 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$nev1=$_COOKIE['pogi']; | |
if($_GET['szam1']){ | |
$nev1=$_GET['szam1']; | |
setcookie('pogi', $nev1, time()+2*3600); | |
} | |
$nev2=$_COOKIE['pogi2']; | |
if($_GET['szam2']){ | |
$nev2=$_GET['szam2']; | |
setcookie('pogi2', $nev2, time()+2*3600); | |
} | |
$nev3=$_COOKIE['pogi3']; | |
if($_GET['szam3']){ | |
$nev3=$_GET['szam3']; | |
setcookie('pogi3', $nev3, time()+2*3600); | |
} | |
$nev4=$_COOKIE['pogi4']; | |
if($_GET['szam4']){ | |
$nev4=$_GET['szam4']; | |
setcookie('pogi4', $nev4, time()+2*3600); | |
} | |
$nev5=$_COOKIE['pogi5']; | |
if($_GET['szam5']){ | |
$nev5=$_GET['szam5']; | |
setcookie('pogi5', $nev5, time()+2*3600); | |
} | |
?> | |
<style> | |
div{ | |
background:black; | |
display:inline-block; | |
min-height:10px;} | |
#d1{width:<?php echo $nev1;?>px} | |
#d2{width:<?php echo $nev2;?>px} | |
#d3{width:<?php echo $nev3;?>px} | |
#d4{width:<?php echo $nev4;?>px} | |
#d5{width:<?php echo $nev5;?>px} | |
</style> | |
<form> | |
<input name='szam1' type='text' value='<?php echo $nev1;?>'> <div id='d1'> </div><br/> | |
<input name='szam2' type='text' value='<?php echo $nev2;?>'> <div id='d2'> </div><br/> | |
<input name='szam3' type='text' value='<?php echo $nev3;?>'> <div id='d3'> </div><br/> | |
<input name='szam4' type='text' value='<?php echo $nev4;?>'> <div id='d4'> </div><br/> | |
<input name='szam5' type='text' value='<?php echo $nev5;?>'> <div id='d5'> </div><br/> | |
<input name='belep' type='submit' value='ábrázol'> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment