Jump to content

smk17

Members
  • Posts

    14
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

smk17's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks everyone for your help and direction, I've learned a lot (still MUCH more to learn) I wanted to show you what I've come up with so far: http://dyson.cornell.edu/steve/session/test/index.php Only the first CLICK HERE is functional on page 02.php. Remember, this is a newbie with a capital N. And the site is just a test site, it's not designed to look pretty yet. I do know that I have nothing in place for error messages if someone tries to move ahead without selecting anything or forgets to check things.
  2. Something that stores more than one value in a single variable?
  3. Okay, I messed around a bit and got it to print out the selected fish, $fish_array=$_POST['fish']; $_SESSION['fish']=$fish_array; <?php print_r ($fish_array) ?> but it looks like this: Array ( [0] => Bonito [1] => EscolarOilfish [2] => Kahawai [3] => Mackerel [4] => Mahi-Mahi [5] => Spearfish ) I need it to look like this: Bonito, EscolarOilfish, Kahawai, Mackerel, Mahi-Mahi, Spearfish I really have no idea what I'm doing, lol
  4. Thanks Jessica, Is this correct? FORM page 1: <input type="checkbox" name="fish[]" id="EscolarOilfish" value="EscolarOilfish"/>Escolar or Oilfish<br /> <input type="checkbox" name="fish[]" id="Gemfish" value="Gemfish"/>Gemfish<br /> <input type="checkbox" name="fish[]" id="Herring" value="Herring"/>Herring<br /> Page 2: $_SESSION['fish'] = $_POST['fish']; and then to print on page: <?php echo $_SESSION['fish'] ?> Just tried this and my output was the word "Array". not the selected fish
  5. Okay, it's been a while, but finally had some time to test this. I have been able to figure out how to gather data from, let's say three pages of forms, and then on the last page, display the results where I see fit, which is exactly what I need. I am using php sessions. But the tutorial I used to do this only used one checkbox as an example. My very first form asks the user to select which fish they work with. There are 24 different types of fish that they can choose from and they may work with all of them, or only some, I put them all as checkboxes. Example: <input type="checkbox" name="EscolarOilfish" id="EscolarOilfish" value="EscolarOilfish"/>Escolar or Oilfish<br /> <input type="checkbox" name="Gemfish" id="Gemfish" value="Gemfish"/>Gemfish<br /> <input type="checkbox" name="Herring" id="Herring" value="Herring"/>Herring<br /> so on and so on.... The fish that they select I want carried to the next page sort of like "Here are the fish you selected." I have no idea how to do that, thanks for any help I will also need the option of letting them go back to the first form if the results page indicates they checked some wrong boxes. Steve
  6. To John, lol, I wish I was that fast. I haven't even tried it yet. Just saying thanks for letting me know how to begin.
  7. This is excellent, thanks for the direction.
  8. I've been given a job in creating sort of a flow diagram for employees in the seafood industry. This is what the client wants: The user goes to a certain web page. On this first page they select from a list, (radio buttons probably) the fish that they receive or work on. Hit submit or next... The next page displays the fish that they selected. Now they have to determine how they received the different species of fish (was it frozen, iced, or refrigerated, etc) Hit SUBMIT. Now they are taken to one of three places, the Frozen page, the iced page, or the refrigerated page and have to answer more questions about potential food safety hazards depending on how they received the fish. And on and on. The end result on the last page is an actual Hazard Analysis Worksheet, a six column table, that will be filled out appropriately with the answers and info they have given on the previous pages, they can then print this worksheet out as their own customized worksheet to bring to work. So how do I approach this? PHP Sessions? How do I carry the selected data from page to page and then have that data be filled in to its appropriate column and row in the final table? Each user will end up with totally different results. I'll admit I'm fairly new to php but can work my way through things if I know how to approach it and am very eager to learn how to do it. Thanks for any help
  9. THanks for the direction, I'm not up to this level yet, but it's good to know what to work on.
  10. I'm quite new to PHP and mysql but I am studying my butt off. I run a website dedicated to boys high school basketball in the New York area. Right now it is 100% static. The area I have questions on are the schedule pages. There are 70 teams that I cover. I want each team to have their own schedule page for the upcoming season. Right now those schedules are in tables on the html page, each on their own page and I manually create them each season and also manually enter the game scores after the game takes place. Since two teams play each other, I have to open team A's page and team B's page and manually type in these scores. What I'd like to happen. I've created a database that, for example, has a table in it called "candor_schedule". It has 7 columns of DAY OF WEEK, DATE, TIME, H/A, OPPONENT, VARSITY_SCORE, JV_SCORE. I have been able to figure out how to create a form where I can enter the schedule, hit submit and have it populate the database and then I have a web page set up where the database info feeds into that page. That I have figured out. Of course I do not enter the game scores yet because they haven't been played yet. And since I have to fill the schedule table out before the season starts, I need to go back and enter the game scores weeks later into the same table? But this is not the correct way to do this I know. I'd like to have a form where I can enter the game (both teams, both scores, and then that info gets fed into each teams schedule, so I don't have to open up both teams pages, I can do it once from one place. Can someone guide me in the right direction and try to explain the structure that might work? Do I need to make another table for the scores? And do I need a table for each team? Here is the static page of one of the schedule pages: http://section4hoops.com/pop/iac_schedules_08/candor_s.htm And here is the dynamic page test: http://section4hoops.com/php_test/index.php Thanks for any help Steve
  11. Okay, let me make sure I have the basic structure of what will happen here, or what I want to happen. 1. User (person who has volunteered to enter game scores) will log on to a web page. 2. The interface he sees will let him enter the scores from the games that he is responsible for. I'm assuming this will be a form that when sent will fill up rows of a database? 3. When people then view the schedule page for that team, those scores from that row will have been automatically placed in the right spot. Would I need to make a separate table for each team in the database? I'm guessing yes.
  12. Yes I'm updating the page manually each time, but not writing over anything, just adding to it. Here's one example: section4hoops.com/pop/iac_schedules_08/candor_s.htm Although, there is a new page for each year. I've been doing this for 3 years. Now I manually type in the score, the W or L, and then the JV score. I have started going through several tutorials and am very interested in it and wish I started many years ago.
  13. I'm wondering if anyone can tell me if this is possible or if I'm just dreaming. I run a website dedicated to Section 4 basketball in New York State. There are 70 teams, divided up into 5 different leagues. I keep their schedules and I also try to enter the scores of their games and enter those on their schedule page. But, with so many games each night of the week (Varisty and JV) I'm finding it close to impossible to keep up. I have to manually enter these scores twice for each game. One on Team A's page, and one on Team B's page. Is there a system I could set up with php that would give me a basic entry page. I enter the schools' names, the date, and the score, and that is automatically entered on their schedule's page with a W or L next to the scores. So I am only entering the scores once for each game, and let php divide that data onto the correct teams schedule page. And making php recognize if that team won or lost. Best case scenario would be to have volunteers from across section 4 be able to enter these scores on a web page for their league or division, even more lessening the load on me. I know there are a few PHP Sports Content Management systems out there, but it seems writing my own would be better. As you have guessed I'm quite new to php. Thanks for any help, I'm not looking for anyone to write this for me, just looking to see if this is possible and maybe a nudge in the right direction. The site is section4hoops.com. There is no php on this site, it's all html.
×
×
  • 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.