Jump to content


Staff Alumni
  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Jessica

  1. Your original post doesn't have session_start() on the top. Please use the code tags! Highlight your code and hit the # button.
  2. Change $email_message = "Visitor mail \r Messsage: \r $visitor_message \r Visior IP: $ip \r Email $visitor_email\r Messsage: \r $visitor_comments "; to $email_message = "Visitor mail \r\n Messsage: \r\n $visitor_message \r\n Visior IP: $ip \r\n Email $visitor_email\r\n Messsage: \r\n $visitor_comments "; And it will be formatted nicer.
  3. You posted way too much code, and didn't use the code tags, so it's annoying to try to edit it. As I said twice, before the foreach on the line which is causing problems, add another if statment to check the values of the array. It seems the array is empty.
  4. Your question doesn't make much sense. You say "you can get to them"...how? What is the context? And why do you need it to match exactly?
  5. I bet you have register_globals enabled and you're logged in as administrator. Turn that off and use $_GET and $_POST.
  6. Before the foreach on line 20, check that the array being sent has values. if(count($array) > 0){ //foreach }else{ //oops! }
  7. I don't think it is. Perhaps there is an easier way - like setting up a cron job or something? What are you trying to do?
  8. try using mysql299.secureserver.net instead of http://mysql299.secureserver.net Is this on godaddy?
  9. register_globals being off requires that in order to use a variable which is defined outside of a function, you must mark it global in the function.
  10. $str = str_replace(' ', ' ', $str); Not sure if htmlentities() or a similar function would be better, but that should work.
  11. Oh sorry. Just go to the file in your browser, so you can see. I have no experience with flash, but you should still be able to view the .php file and check the connections.
  12. after all the mysql_** functions, add or die(mysql_error()); $DBConn = mysql_connect($DBhost,$DBuser,$DBpass) or die(mysql_error()); mysql_select_db($DBName, $DBConn) or die(mysql_error()); etc. (keep doing it on the rest, query, etc) That will show you where it's breaking and why.
  13. If you mean you want the contents of the drop down to repopulate each time the user picks a program, you'll need to use Ajax.
  14. It sounds like what you were saying is the includes aren't working, or variables aren't passing through all of them. Are you using require() instead of include()? Try that first. Then make sure in any functions the variables are marked global.
  15. <input type="text" name="name" value="<?php print $_SESSION['username'];?>" /> <?php print '<input type="text" name="name" value="'.$_SESSION['username'].'" />'; ?>
  16. The first error was on line 2, The ; in place of ) It stopped at that error before reaching the one on 5.
  17. print "<table border="1">\n"; You have " inside your string which aren't escaped. print "<table border=\"1\">\n"; Or print '<table border="1">'."\n";
  18. What the heck are you saying? The number on the url? Are you smoking something?
  • 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.