Jump to content

fugix

Members
  • Posts

    1,483
  • Joined

  • Last visited

Everything posted by fugix

  1. fwrite($fdir, $newsletterinfo . "\n");
  2. Just noticed, in your fopen() function, you dud not specify a mode in which to open the file. Change it to.
  3. I'll have to see more if your code on both pages before I can help further
  4. Since $data is a string, there should be no problems assigning it to the session. Try setting $data to a string like "test string"
  5. Ou forgot an underscore in your request array. Try $newsletterinfo = $_REQUEST['email']; Also, I prefer using file_put_contents()
  6. Okay so the output that you showed me indicates that your variables are passing to that other page, but your booking session is empty. I would remove the empty declaration of your booking session. The only time you will need to declare the booking session is when you are setting it to the variable $data. Once you do that, perform a print_r($_SESSION)
  7. If you are sure that you have session_start() on your process_booking_success.php page, on that same page, what does print_r($_SESSION); output?
  8. In your process_booking_success.php page, do you have session_start() at the very top of your code?
  9. I've already stated this
  10. From php.net 'DOCUMENT_ROOT' The document root directory under which the current script is executing, as defined in the server's configuration file. Insert this into one if your php documents to check your document root file. Your files will need to be linked to it. echo $_SERVER['DOCUMENT_ROOT'];
  11. You might want to use $_SERVER['DOCUMENT_ROOT'] to find your servers root directory path. Which will allow you to determine what path your files need to be linked to.
  12. Change your first if statement to if ($_FILES['userfile']['type'] == "image/pjpeg" || $_FILES['userfile']['type'] == "image/jpeg" || $_FILES['userfile']['type'] == "image/gif" || $_FILES['userfile']['type'] == "image/png") {
  13. fugix

    Ajax Button

    What code do you have so far?
  14. What do you mean "it's showing up" you csn use ini_set() to set display_errors to off. But I'm not sure if that's what you should do until I know more about your question
  15. As you stated, why don't you simply set a max-width or max-height for the images. This will also maintain the resolution of the images as opposed to forcing them to a certain width or height
  16. If you pasted that code from your editor, you have mispelled FROM here $sql = "SELECT * FORM products";
  17. fugix

    Regex Issue

    Pikachu's method will work as well in this case, less complicated as well, personal preference as to which one you want to use
  18. fugix

    Regex Issue

    Try instead $pattern = '/^([a-zA-Z0-9]{8,12})$/i';
  19. Never claimed I knew you. But judging from your code my first statement stands. My question was to understand further. But if you dobtcwsbt my help...oh well
  20. A blank screen is normally caused by a syntax error in your code, a 500 error is an internal server error.
  21. No problem, basically, you are trying to use sessions that do not have values. Which will cause an undefined index error that you received. The way your code is now, your sessions will only be able to be called after your $_POST datahas been sent, thus setting the values od your sessions yo that data.
  22. I don't think that you fully understand how regexp works. That code will never grab anything. Are you trying to grab that entire snippet or a piece of it?
  23. I'm assuming that you are trying to use the session values from above without them having any value. What does a print_r($_SESSION) show?
  24. Create a query to grab the email address where the users username equals your $_GET['user'] then use mysql_fetch_array() to grab the data and set it to $to
×
×
  • 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.