Jump to content

ZulfadlyAshBurn

Members
  • Posts

    783
  • Joined

  • Last visited

Everything posted by ZulfadlyAshBurn

  1. what do you mean decode? I don't think you could decode those, unless you are working with them. once a variable is encoded, it cannot be decoded unless they are using a function which allows them to be decoded. md5(), sha1(), crypt() can't be decoded. they would usually get a random number and decode it, so there is no way you could get to the direct path. EDIT: imo he is trying to decode this string: niwske5oy33wzrz
  2. when page is loaded, use javascript and store the height and width of the browser. use setInterval to check if the browser width and height had change. if changed, change the browser's size.
  3. updating your OS has nothing to do with those error but updating your PHP have something to do with those errors. in your code on line 25 what is the code? as for date() use date_default_timezone_set(). see function.date-default-timezone-set
  4. cant log in?
  5. Did you do the design by yourself? I admire your designing skills.
  6. Ouh. No prob
  7. HAHA. sometimes i wonder what you are doing with it. HAHA.
  8. why take more steps in the coding when the code i've given you was good enough to make sure it wasn't blank? for the return back to previous form, there is something unneeded in the code.
  9. if you were to submit a blank input, it would still submit. whereas my code verify if the input is blank or not.
  10. Done. you may want to test it out it works. <?php session_start(); if (isset($_POST['position']) && !empty($_POST['position'])) { $_SESSION['position'] = $_POST['position']; } if (isset($_POST['name']) && !empty($_POST['name'])) { $_SESSION['name'] = $_POST['name']; } if (isset($_POST['newsletter']) && !empty($_POST['newsletter'])) { $_SESSION['newsletter'] = $_POST['newsletter']; } $name = $_SESSION['name']; $position = $_SESSION['position']; $newsletter = $_SESSION['newsletter']; if(isset($_GET['backto']) && !empty($_GET['backto'])) { $back2 = $_GET['backto']; if($back2 == "reset") { $position = ""; $name = ""; session_destroy(); } if($back2 == "name") { $name = ""; } if($back2 == "position") { $position = ""; $name = ""; } } if(empty($position) && empty($name)) { $name = $_SESSION['name']; $position = $_SESSION['position']; $newsletter = $_SESSION['newsletter']; ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input type="text" value="<?php echo $position; ?>" name="position" /> <input type="checkbox" class="styled" name="newsletter" value="on" <?php if($newsletter == 'on') { echo "checked";} ?> /> <input type="submit" name="btn" /> </form> <?php session_destroy(); $name = ""; $position = ""; $newsletter = ""; } if(!empty($position) && empty($name)) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input type="text" value="" name="name" /> <input type="submit" name="overview" /> </form> Go <a href="<?php echo $_SERVER['PHP_SELF']; ?>?backto=position">back</a> <?php } if(!empty($name)) { echo $position; echo $name; if($newsletter == 'on') { echo "Newletter on!"; } echo 'Go <a href="'. $_SERVER['PHP_SELF'].'?backto=name">back</a>'; echo 'Go <a href="'. $_SERVER['PHP_SELF'].'?backto=reset">reset</a>'; } ?> EDIT: ive changed the script a little.
  11. opps. sorry, i just added the else and if to the code, didnt really read through the code.
  12. try this <?php $imgpath = '/shushmedeals/templates/shushme_deals/images/'; //$bgimgID = $item->id; $bgimgID = isset($_GET['categoryId']); $bgimgID = $_GET['categoryId']; echo $bgimgID; //echo 'shoot her eman'; //echo $imgpath; if($bgimgID = 1) { $filename = '/shushmedeals/templates/shushme_deals/images/bg_home.jpg'; } else { if($bgimgID = 2){ $filename = '/shushmedeals/templates/shushme_deals/images/shushme_bg_img1.jpg'; } else { if($bgimgID = 3){ $filename = '/shushmedeals/templates/shushme_deals/images/shushme_bg_img2.jpg'; } else { $filename = '/shushmedeals/templates/shushme_deals/images/shushme_bg_img3.jpg'; } } } if($filename){ echo '<br>'.$filename; // SET COOKIE //setcookie('bgimg', $filename); //echo $_COOKIE['bgimg']; } else { echo "There is no Background for this category"; // DO NOT SET COOKIE } // Print an individual cookie echo $_COOKIE["location"]; ?> EDIT: UPDATED
  13. no prob. feel free to ask question at this forum if you need. please mark topic as solved
  14. mostly is on the start page. there are to many table border. for the homepage as in the one which have login and register. you could use ccs for that <style> body { background-image: url(images/bodybeta.png); background-size: 100%; </style> just entering http://www.airlinewars.com/editplaneroute.php in the address bar will cause mysql error Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 8 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 118 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 9 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 122 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 10 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 126 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 11 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 130 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 12 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 135 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 13 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 139 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 14 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 143 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 15 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 147 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 16 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 151 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 17 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 155 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 18 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 159 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 19 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 163 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 20 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 167 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 21 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 171 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 22 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 175 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 23 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 179 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 24 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 183 Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 25 in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 187 Warning: Division by zero in /home/tucker17/public_html/airlinewars.com/editplaneroute.php on line 189
  15. did it worked?
  16. sometimes, the tables border is rather irritating. for your homepage, you should use css for the background.
  17. if you are using forms, PHP will get the variable from the name. the ID are usually used by jaavscript.
  18. just realised there was some errors in my script. the code below is tested and working. <?php session_start(); if (isset($_POST['position']) && !empty($_POST['position'])) { $_SESSION['position'] = $_POST['position']; } if (isset($_POST['name']) && !empty($_POST['name'])) { $_SESSION['name'] = $_POST['name']; } if (isset($_POST['newsletter']) && !empty($_POST['newsletter'])) { $_SESSION['newsletter'] = $_POST['newsletter']; } $name = $_SESSION['name']; $position = $_SESSION['position']; $newsletter = $_SESSION['newsletter']; if(empty($position) && empty($name)) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input type="text" value="" name="position" /> <input type="checkbox" class="styled" name="newsletter" value="on" <?php if($newsletter == 'on') { echo "checked";} ?> /> <input type="submit" name="btn" /> </form> <?php } if(!empty($position) && empty($name)) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input type="text" value="" name="name" /> <input type="submit" name="overview" /> </form> <?php } if(!empty($name)) { echo $position; echo $name; if($newsletter == 'on') { echo "Newletter on!"; } session_destroy(); } ?>
  19. please do not use short tags. i've re-coded your script. do try it. <?php session_start(); if (isset($_POST['position']) && !empty($_POST['position'])) { $_SESSION['position'] = $_POST['position']; } if (isset($_POST['name']) && !empty($_POST['name'])) { $_SESSION['name'] = $_POST['name']; } if (isset($_POST['newsletter']) && !empty($_POST['newsletter'])) { $_SESSION['newsletter'] = $_POST['newsletter']; } $name = $_SESSION['name']; $position = $_SESSION['position']; $newsletter = $_SESSION['newsletter']; if(empty($position) && empty($name)) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input type="text" value="" name="position" /> <input type="checkbox" class="styled" name="newsletter" value="on" <?php if($newsletter == 'on') { echo "checked";} ?> /> <input type="submit" name="btn" /> </form> <?php } if(!empty($position) && empty($name)) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" enctype="multipart/form-data"> <input type="text" value="" name="name" /> <input type="submit" name="overview" /> </form> <?php } if(!empty($name)) { echo $position; echo $name; if($newsletter == 'on') { echo "Newletter on!"; } session_destroy(); } ?> EDIT: i've just updated the new version. the above code is the new one. take note.
  20. its because you already have the session store in your browser. clear them. <?php session_start(); if (isset($_POST['newsletter'])) { $_SESSION['newsletter'] = $_POST['newsletter']; } $newsletter = $_SESSION['newsletter']; if($newsletter == "yes") { $newsl = 1; echo $newsl; } if($newsl == 1){ echo "example"; } // this will destory the sessions. session_destroy(); ?> tested everything and its working even if the $newsletter = $_SESSION['newsletter']; is outside the bracket.
  21. so what is your form code? you should have something like this form.html <form action="check.php" method="POST"> Is this how you do it? <br/> YES:<input type="checkbox" class="styled" name="newsletter" value="yes" /> <input type="submit" value="submit"/> </form> check.php <?php session_start(); if (isset($_POST['newsletter'])) { $_SESSION['newsletter'] = $_POST['newsletter']; $newsletter = $_SESSION['newsletter']; } if($newsletter == "yes") { $newsl = 1; } ?>
  22. you also didn't add <?php session_start(); ?> to the start of your code.
  23. post your full form code.
×
×
  • 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.