Jump to content

DeanWhitehouse

Members
  • Posts

    2,527
  • Joined

  • Last visited

Everything posted by DeanWhitehouse

  1. Yes i do, but i am not writing it for you or showing you one, i doubt you wrote your current code if you can't make a form using $_POST, to post to it's self. Please look at some web tutorials on tizag and w3schools and learn php form interaction. If you want it wrote for you create a post in the freelancing section.
  2. Post the form to the same page it's on, then do all the form processing there and the error checking, then you can show errors without using $_GET at all.
  3. he wants it like 1,2,3 ..... 9,10,11 I believe, so it doesnt show all the page numbers at one time.
  4. <?php //connect to the db $sql = "SELECT * FROM tablename"; $sql = mysql_query($sql); while($rows = mysql_fetch_assoc($sql)) { echo $rows['row_name']."<br>"; } ?>
  5. Read what i wrote, if it post's to it's self then it will store the data in the $_POST
  6. <?php function bbcode($code) { $code = preg_replace("/\[code\](.*?)\[\/code\]/","\\1",$code); $code = highlight_string($code); return $code; } echo bbcode("<?php echo 'hello';?>"); ?>
  7. I'm afraid we will not sit here and keep writing changes to your code for you, take my advice, rewrite it and keep it simple.
  8. Made this if it helps? <?php if(isset($_POST['sub'])) { $str = $_POST['test']; $str = "<?php ".$str."\n?>"; highlight_string($str); } ?> <form method="post" action=""> <textarea name="test"></textarea><br> <input type="submit" name="sub" value="Go"> </form>
  9. I'm not sure but shouldn't it be NOW() instead of CURDATE(), if not you can always do it in PHP
  10. I don't think you can do it like that, i don't think you can include files and use $_GET or $_POST in them. Why not have an if statement instead in the main page?
  11. so thats the whole code? Also have you made sure it is on the index page?
  12. And because we are physic we know your code all ready ?
  13. OK, then sorry but your code is to untidy (makes it hard to read) and there are to many if statements in your code. My advice would be to have the form self post and then present any error messages on that page.
  14. try removing && $_SESSION['error'] == true
  15. Then it must be being directed there, check your code for any headers etc. that might be doing this, check all the pages that the form can possibly go to.
  16. Are you serious? Why do you not just split the file/files yourself instead of using code? Its not like i am saying anything complex
  17. my advice to you is to learn what you are doing and don't just rely on dreamweaver, go to sites like tizag.com and w3schools.com to learn about php and mysql
  18. It doesn't seem like you are reading what people have wrote
  19. shundt this be header("location:./?page=register&error=true"); This header("location:index20%copy.php/?page=register&error=true");
  20. If i understand you right why not just do it manually? Split the file yourself
  21. Please post the from process code
  22. I would use post, i prefer it to using get for login's. Also , i assume you are using a HTML generator <FORM NAME="login" METHOD="post" ACTION="login.php?mode=1"> Should be <form name="login" method="post" action="login.php?mode=1">
  23. What? You want us to look through your code and change it for you. Ask in the freelance section.
×
×
  • 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.