User Profile

Collapse

Profile Sidebar

Collapse
SupraFast
SupraFast
Last Activity: Oct 19 '08, 12:46 AM
Joined: Sep 21 '08
Location: Brooklyn, NY USA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Okay lol, I found the problem and I must apologize to IE7 lol.

    Hopefully this will help other people down the road. I was looking more closely at my backup script and I now realize that the script was slight different.

    I was using time() + 846400 on the old script and time() + 3600 on the script that had the problem.

    Now the issue is, I didn't take into account that the server is located in PST and I'm...
    See more | Go to post

    Leave a comment:


  • The server is the same and the accounts have the same settings. It seems the problems is fixed now.


    This behaviour was very odd and maybe somebody can explain why.

    1. I uploaded all the files from one domain to the other domain. The cookies worked on the orginal domain, but not the new one.
    2. I tried clearing the cookies, temp internet files, closing browsers completley, and etc. Still didn't work...
    See more | Go to post

    Leave a comment:


  • Question is, do you see anything wrong with my script that wouldn't create a cookie? As I said, the same exact script works on the other account. Same browser is used, IE7. Variables, Time, and return values are all good.

    Could it possibly be a setting on the account or server that's preventing the cookie to be created?
    See more | Go to post

    Leave a comment:


  • SupraFast
    started a topic setcookie() returns true but no cookie appears.
    in PHP

    setcookie() returns true but no cookie appears.

    I have two hosting accounts. On one, my setcookie script works fine; cookies are created. On the other, the same script doesn't work. The function returns TRUE, but no cookies is created.

    I checked to make sure that the variables have values and that the proper expire time is set and etc.

    Any ideas?

    Code:
    <?php
    	foreach($_POST as $name => $value){
    		if($name == 'hItem'){
    			$item
    ...
    See more | Go to post

  • Well you are correct about the HTML being right. I stupidly, forgot to close the tag on the form. I put </form rather than </form>. I typed it correctly, of course, above.

    It amazes me how many problems I run into due to stupid mistakes like this lol. I always look for a logical answer as to why something isn't work but it always winds up being the most unexpected mistake.

    Thanks for your help.
    See more | Go to post

    Leave a comment:


  • Well the PHP side is the server side. There can't be anything wrong there because the HTML submits the post variables to the PHP side.

    The PHP side doesn't create post variables...so they are obviously getting sent over.
    See more | Go to post

    Leave a comment:


  • 2 Forms on 1 Page. How to separate Post Variables?

    I have 2 forms on one page. I have hidden variables in each form, with separate names, that contain values. The user decides which form to submit on. Only 1 form will be processed.

    Now my problem is, when I read the Post Variables from the server side with PHP.

    Code:
    	
    foreach($_POST as $name => $value) {
          print "$name : $value<br>";
    }
    That code will output...
    See more | Go to post
No activity results to display
Show More
Working...