Jump to content

daniel1988

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

daniel1988's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I can't change those original values? :)
  2. :( :( I still cant get it. I have elided some stuff to keep it simple. $projComment = $_POST["projComment"];         $banLive = $_POST["banLive"];     $banCapp = $_POST["banCapp"];     $banCat = $_POST["banCat"];     $postIntranet = $_POST["postIntranet"];     $eSent = $_POST["eSent"];     $archFiles = $_POST["archFiles"];     $progStatus = $_POST["progStatus"];     $testArray = array (     $banLive, $banCapp, $banCat,     $postIntranet, $eSent, $archFiles,     $progStatus );         foreach( $testArray as $key => $temp )     {         if ( $temp == "" )         {           $testArray[$key] = "TEMP";         }         else         {             echo $testArray[$key] = "THIS";         }     } But then when I try and echo the variable out later in the page eg.   echo "        <td class='button'>$banLive &nbsp;";         echo "        </td>  ";         echo "      <tr> "; The changes are not saved, and the variable prints out as blank still. :(
  3. Im trying to modify values in an array. I have several strings and passing them into an array, I then wish to modify the strings value. He is what I have, this is not correct but I hope it demostrates my problem. $StringA = "John"; $StringB = "Jack"; $StrnigC = "Joe"; $array = array ( $StringA, $StringB, $StringC ); foreach( $array as $temp ) {     if ( $temp == "Joe" )     {           $temp = "NEW NAME";     } } So, I just really want to change the value. :) Thanks in advance.
×
×
  • 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.