Jump to content

nethnet

Members
  • Posts

    284
  • Joined

  • Last visited

Posts posted by nethnet

  1. Since it works in FF and not IE, I'm assuming you initiate the session properly, but in that case it's probably the cache.  You can adjust this with headers (because as someone mentioned, IE likes to cache pages... good for bandwidth, bad for you).  Try adding this to your header:

    [code]header("Cache-control: private");[/code]

    That will force the page to reload, instead of using the cached version.
  2. From the manual:

    [quote] If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), you can specify the file to be included using a URL (via HTTP or other supported wrapper - see Appendix M for a list of protocols) instead of a local pathname. If the target server interprets the target file as PHP code, variables may be passed to the included file using a URL request string as used with HTTP GET. This is not strictly speaking the same thing as including the file and having it inherit the parent file's variable scope; the script is actually being run on the remote server and the result is then being included into the local script.

    Warning

    Windows versions of PHP prior to PHP 4.3.0 do not support accessing remote files via this function, even if allow_url_fopen is enabled.[/quote]

    What version of PHP are you using?

    Also, try replacing that include with an echo just to see exactly what string is being used by the include function.
  3. There's one titled Advanced Pagination Tutorial or something like that which limits the pages displayed on both sides of the current page, just like he wanted.  Either way, you have a solution, either in that tutorial or in the code posted above.  They're both worth checking out, just to see the different methods of acomplishing it.
  4. There are also at least two wonderful tutorials on the PHPFreaks site that accomplish exactly what you ask for.  I would recommend checking them out to learn a thing or two so repeating this in the future doesn't consist of trying to dig up old code.  Good luck!
  5. You also have to realize that MySQL syntax is different than PHP syntax.  PHP uses comparison operators (such as == and &&), MySQL doesn't.  You had these PHP operators in your MySQL query which was causing your errors.  I know you want to learn everything as simple as posible, and avoid all of the technical jargon and whatnot, but you're going to kick yourself later when you HAVE to go back and relearn everything as you should have learnt it the first way.  Believe me, it's not that hard if you just take the time to work with it.  Like in the previous post, you are going to have to understand both MySQL and arrays before doing yoru database queries.  You can't just echo your array without accessing an individual element.  If what I'm saying confuses you, do a quick google search for PHP arrays and read some articles.  This is very basic stuff and what you are trying to accomplish cannot be done without understanding it.

    Good luck.
  6. I don't see why the \n would force new elements into yoru array instead of just appending to the string, but I'm not going to question your error.  That's a bit pointless.

    This is a bit of a longshot, but my guess is that it's a multidimensional array.  Try putting a second key on there and seeing if that yields any different results.

    $_POST['Domains'][0];
    $_POST['Domains'][1];
    etc...

  7. Okay, well, I can tell you why your JavaScript isn't working.  Part of the DOM is that you cannot dynamically alter the attributes of something that hasn't yet been created.  For instance, you are trying to set an action to your form and submit it before you even create that form in the HTML.  You will have to put that segment of PHP/JavaScript after you create your form or else it will not work.
  8. 99% of forms are processed in the way I outlined.  It's simple, easy to maintain, and secure.  I would recommend that over using Javascript wholeheartedly.  Some users may have it disabled... what then?  Will they just not be able to use your forms?  Javascript is also very easily taken advantage of by malicious users if you wish to validate your submissions that way.
×
×
  • 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.