Jump to content

Recommended Posts

I'm having an issue with one section on my website dealing with sessions. Now I know that myself and two other individuals can get it to work without any issues on IE, FF, or other browsers, however, others cannot get it to work. Maybe someone can help me in the right direction?

 

<?php
session_start();
include "db.php";
?>


<?php
           if(!empty($pilotid)){
           ?>
           <input type="submit" name="Submit" value="Submit Bid">       
          <? } ?>

 

This Submit button is where the issue is at. It is not showing up for everybody like I mentioned before. Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/186335-php-session-issue/
Share on other sites

DB.php is the information stored for the connection to the database. Pilotid is the variable name that I gave for the session['pilotid'], which is registered when it is logged in. The issue is that the session variable works on other pages, but doesn't seem to work on the page this code is on.

Link to comment
https://forums.phpfreaks.com/topic/186335-php-session-issue/#findComment-984007
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.