Jump to content

van2

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

van2's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Have you seen this sample chapter? http://www.oreilly.com/catalog/webdbapps/chapter/ch08.html It's a great introduction to sessions.
  2. Just curious, AFAIK php passes the session id in a cookie, but if cookies are disabled sessions will not work, unless the page is called with the PHPSESSID variable in the url. My question is, I've got cookies disabled and passing the PHPSESSID in the url, but after that the only thing I'm calling is session_start() just like that and nothing else. Does this mean that the session_start function also checks the GET variables for the variable named PHPSESSID? and if found uses it? Is this correct? What's going to happen if a bookmark is called up that has an old session in the URL? Is it just going to ignore the old session key and start a new one, meaning that the URL in the address bar will not reflect the actual session at the time? Also, does this imply that if I intend to POST a form to the same page, and leave the action= to blank it's going to post the wrong session key again, thereby starting another new session each time the form is posted? So I imagine I would have to construct something like this for the action= $_SERVER['PHP_SELF']."?PHPSESSID=".session_id(  ); Sorry if this questions a bit complicated, Thanks
  3. Thanks for the comments, I figured it out, i forgot to remove an empty (invisible) dreamweaver layer just above a portion of the the top of the page, so the layer was absorbing the clicks for all buttons that it covered! That's why some clicks were successful others weren't.
  4. Hi, I have the strangest problem: I have a site that navigates through dynamic php pages in a sort of "wizard" format. The entire script is one big file, so it keeps calling itself and relies on POST and SESSION variables to know what's going on. I'm using html POST forms on each page and have only server-side validation, and do not want to use any client side script. Here's the strange thing: I'm using html <BUTTON type="submit"> tags inside html FORMS. Most buttons work, but using the exact same code in other places, it displays correctly, but simply doesn't react. Have tried all of the following: 1. Tried three different web browsers 2. changed form method to "GET" 3. changed action field of form 4. added name, value parameters to buttons and form 5. added various additional fields to the form The only thing that made it work was changing to <INPUT> instead of <BUTTON>, but this isn't good, since I'm using uniform stylized buttons everywhere. And here's the strangest thing: one of the buttons doesn't work at all, another one works about every third click! Anybody have any idea what this could be? PHP v.4.4.4 w/ apache 2.1 and latest browsers Here's the code in its most basic form (which doesn't work): <form method="post" action="index.php"> <button type="submit">push here</button> </form>
×
×
  • 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.