Jump to content
Larry Ullman's Book Forums

atljj

Members
  • Posts

    5
  • Joined

  • Last visited

atljj's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Oh btw, the Undefined index: c_id never did go away, it still shows in my error_log file but does not stop the program any longer... Found no answer to this problem...
  2. I found it and I was just about right... I changed my radio name= from 'recis' to 'c_id' which was one of my case table fields for record id anyway. I was also trying to track down a fatal error: Undefined index: recis that went away when I changed the name. My answer of what was being returned to the server was confirmed by holding the record to process in $_SESSION['c_id'] = $_POST['c_id']; Only one of the selected radio entries were passed to the server as expected and the value attribute above did capture the correct record id to pass along. Hope additional people out there learned as much from this as I did... Ready to move on now to really less simple stuff...
  3. What will the server receive following submit against the following input? while ($row = mysqli_fetch_assoc($result)) { echo "<tr>"; echo "<td><input type='radio' name='recis' value='".$row['c_id']."'></td>"; echo "<td>".$row['c_username']."</td>"; echo "<td>".$row['c_flag']."</td>"; echo "<td>".$row['c_match']."</td>"; echo "<td>".$row['c_element']."</td>"; echo "<td>".$row['c_patname']."</td>"; echo "<td>".$row['c_patdate']."</td>"; echo "</tr>"; } The 'c_id' contains the record number for that $row so hopefully the only item returned after the user is shown a list of table entries, will be one of the items selected by clicking the radio button that is set to be = to it's table entry or record number... I can't figure out what to grab on the server side to test that nothing was selected or to pass on the 'recis' to be used in the next page... I assume that it will only be one $_POST['recis'] is that right? Or is it going to return an array of all the radio buttons with someway for me to tell which one was selected? Thanks as always for any help...
  4. Thanks for your quick response. Great to know as I can use session to pass page info around and make my life simple which is good. Thx again for the help...
  5. Your book was a Great Find, thanks to your hard work, I am making great progress as well now... My question is probably a simple one but here goes: Are sessions relative to the server time connected? By that I mean, are they separated from all other users that may be using my website at the same time? Or do they overlap with all users and therefore do I have to establish an unique session set for each person who signs in to the site. I am hoping that the first choice is right (easier) and all I have to do is start every web page with: <?PHP ob_start(); isset($_SESSION) || session_start(); ... and the server assigns each user a unique id to keep all other sessions apart? In the session_start() am I supposed to put something in-between the () such as my own set-name, or is that always empty? Does it allow for a parameter and if so what goes there? Thanks in advance for any words of wisdom!!!
×
×
  • Create New...