Thread: Return nothing

  1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    I am using a flash form which sends data to a PHP script but I want the script to return nothing so the original page remains loaded in the browser window.

    Normally when a PHP script is being parsed the browser window turns blank, when I do not return any text.
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    A simple solution is to temporarily open a small new browser window and execute the php file there. Close the window after execution and you're done. I don't think there's any way to execute a php script in the background somehow (it does have to be called by the browser, so your page will go blank anyway)
  4. #3
  5. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    PHP script is parsed on the server side, so if you want PHP scripts to be executed a request to the server has to be made (i.e. (re)loading of a page).
    Why not just execute the script on a reload of the original page. Put the script in the page and send the flashform outcome by a url-variable (page.php3?name="value") to trigger the script on reloading: if(isset($name)) { [execute script lines] }
    After that the page just returns as it was, or you can modify it according to the outcome of the executed script. Just as you wish.

    Greets, Peter
  6. #4
  7. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    You can listen to them, or you can do it the right way:

    header("HTTP/1.0 204 No Response");

    and nothing else.
  8. #5
  9. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    CBolt - You ought to write for DevShed.

    Thanks for all your input and insight. If you're interested in talking about writing for the site, drop me a line at

  10. #6
  11. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    or you could load the script in a 'hidden' frame?
    cbolt's solution seems to be the nicest tho.
  12. #7
  13. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Randy, sorry but I'm too busy with my own site at the moment. Thanks for the offer though.

Similar Threads

  1. help with an isGreater function
    By qiushiming in forum C Programming
    Replies: 18
    Last Post: February 5th, 2004, 08:23 AM
  2. Odd problem with a hash and foreach loop
    By quantumechanix in forum Perl Programming
    Replies: 7
    Last Post: December 15th, 2003, 05:06 PM
  3. Changing Date output in custom script
    By bitesize in forum HTML Programming
    Replies: 1
    Last Post: October 30th, 2003, 01:26 PM
  4. perl newb having mailer script problems...
    By mrmin123 in forum Perl Programming
    Replies: 0
    Last Post: October 7th, 2003, 01:15 AM

IMN logo majestic logo threadwatch logo seochat tools logo