Jump to content

wolfas

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

wolfas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i have solved this problem. I have compared those servers phpinfo and i have found that register_globals was turned on in previous server and i saw that i had attached $_SESSION['id'] = $id where should be $_SESSION['id'] = $_POST['id']. Now everything works fine  :D
  2. i was using $_SESSION['variables'] with no problem when session.use_trans_sid was off  :) but i had to move to server where session.use_trans_sid is turned on and those variables ($_SESSION['variables']) are not working :'(. I cannot modificate php.ini file so and the question would be: what to do that those variables would work again ??? thanks in advance ;)
  3. Hi, when i use only "while{}" my script works but when i add a "for{}" in "while{}" i get a following error Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/index.php on line 57 here is the code : while ($row = mysql_fetch_array($r))//line 57   {     echo "$row[ivykis] $row[form]";     if ($row['form']==1) {$f++;    echo "Taip <input type=\"radio\" name=\"radio$f\" value=\"taip\"> Ne <input type=\"radio\" name=\"radio$f\" value=\"ne\"><br>";}     if ($row['form']==2) {$insk++; echo " <input type=\"text\" name=\"text$insk\" maxlength=3 size=4><br>";}//inputas     if ($row['form']==3)       {           $sesk++;         echo "<select name=\"selectas$sesk\">";          for ($r=0;$r<=$ssk;$r++)           {                    echo "<option value=\"$zzz[$s]\">$zzz[$s]</option>";           }           echo "</select>";       } thanks in advance  ;)
  4. Hello, i have a problem in this script. the problem is that this form works then i use submit instead of image and with image this form doesn't work  :-[ <?php echo "<form action=\"".$_SERVER['PHP_SELF']."\" method=\"POST\">"; if ($_POST['submit']) {   echo $user.' '.$pass; } else { echo "<p><input type=\"text\" name=\"user\" size=5 maxlength=12 value=\"name\"></p>"; echo "<p><input type=\"password\" name=\"pass\" size=7 maxlength=12 value=\"password\"></p>"; echo "<p><input type=\"image\" src=\"image.jpg\" height=\"16\" width=\"24\" border=\"0\" ALT=\"hello\" name=\"submit\"></p>"; echo "</form>";} ?>
×
×
  • 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.