Jump to content

mansuang

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Everything posted by mansuang

  1. I am not sure that this is the right syntax for you or not. [code] <?php $priority = array('first','second','third'); $properties = array('ToName','FromName','ToAddr','FromAddr'); foreach($priority as $priority_value){ unset($result1); foreach($properties as $properties_value){ $result1[] = $priority_value."_".$properties_value; } $result[] = $result1; } print_r($result); ?> [/code]
  2. If you are working on windows, You can use scheduled tasks also
  3. [quote author=DeathStar link=topic=115900.msg472189#msg472189 date=1164220661] This is the exact code im using! [code]<?php $color = "#990099";           /* Default color */ if(isset($_REQUEST['red'])) {   /* If color form submitted */    $color = $_REQUEST['blue']; } ?> <html>   <head>     <title>ColoringPage</title>   </head>   <body bgcolor="<?php echo $color; ?>">     <center><font color=#66ff00><h2>Choose your background color:</h2></font></center>     <form action="coloringPage.php" method='post'>         <ul>           <li><input type="radio" name="color" value="red"><font color=red>Red</font></input></li>           <li><input type="radio" name="color" value="blue"><font color=blue>Blue</font></input></li>           <li><input type="radio" name="color" value="green"><font color=green>Green</font></input></li>           <?php /* and so on */ ?>         </ul>         <input type="submit" value="Change Color" />      </form>     </form>   </body> </html>[/code] [/quote] On line 3,4 You should change [color=red]$_REQUEST['red'][/color] to [color=blue]$_REQUEST['color'][/color] and [color=red]$_REQUEST['blue'][/color] to [color=blue]$_REQUEST['color'][/color] Hope it works fine
  4. [quote author=acidglitter link=topic=115927.msg472174#msg472174 date=1164219839] [quote author=DeathStar link=topic=115927.msg472145#msg472145 date=1164216591] For an time script use [code]?php $color = "greenyellow";           /* Default color */ if(isset($_REQUEST['color'])) {   /* If color form submitted */    $color = $_REQUEST['color']; } ?> <html>   <head>     <title>ColoringPage</title>   </head>   <body bgcolor="<?php echo $color; ?>">     <h1>Chooze your background color:</h1>     <form action="coloringPage.php" method='post'>         <ul>           <li><input type="radio" name="color" value="chocolate">chocolate</input></li>           <li><input type="radio" name="color" value="burlywood">burlywood</input></li>           <li><input type="radio" name="color" value="dodgerblue">dodgerblue</input></li>           <?php /* and so on */ ?>         </ul>         <input type="submit" value="Change Color" />      </form>     </form>   </body> </html>[/code] [/quote] umm.... i already have everything, i'm just wondering whats wrong with it [/quote] I confirm it works fine
×
×
  • 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.