Jump to content
Larry Ullman's Book Forums

marvinds

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About marvinds

  • Rank
    Newbie
  1. Unfortunately that is not an option. It is an assignment for a class that I am taking, and it specifically says to create an index.html file that displays a form, and have it submit the form to calc.php.
  2. I have an index.html page that has a form. I am doing the validation with Javascript, however I would also like to validate with PHP if the user has JS disabled. The problem I am having is reloading the index.html page if the user didn't fill out the required fields. I am using--header('Location: index.html')-- to redirect the user back to the html form. For some reason I can't figure out how to get the error messages to display letting the user know what fields need to be completed, and it just displays an empty form. Any suggestions would be much appreciated. Thanks
  3. I do think that could work with the phone numbers. I am new to both database design, and mysql, so I'm not sure how it would be done, but I'm sure I can figure it out. As for the zip codes, my plan was just to build the table as users enter their information. When they enter their city, state and zip, I would check it against the database to see if the zip code existed. If not, I would add it to the zip code/city table. If it did exist, I would check to see if it matched the city that was currently in the database. If it didn't match I'm not sure what i would do, but maybe create a temp table until I could determine the correct zip/city combination. Would hope this wouldn't be common and users would be entering the correct city/zip combo most of the time.
  4. I have a question about the database design for my project. Originally I was going to have separate tables for Managers, Owners, Players, etc... since they all require different information. This design created a problem on how to add phone numbers. In order to do this, I was going to have to create separate tables for Managers_phone, Owner_phone, Player_phone since you couldn't have a foreign key in one phone table relate to different tables. Could you just create one table for People, with all of the information that they have in common such as first name, last name, address, etc..., and link phone table to this table, and then have seperate Manager, Owner, player tables to store the information that is unique to each? Also, I am planning on just storing the zip code on the people table, and then have a separate table that matches each zip code to the proper city. Is this fairly common, or do you usually store City, State, and zip in the same table?
  5. I had the same issue, but it was with just the pass1 box. I modified the form to put the pass1 value in the email box the second time it loaded, and it was a password that I had previously used. This did bring up a question regarding sticky forms. Is it a good idea to use sticky forms for the password fields? I would think it would be better off making the user retype the passwords for the two password fields. Might be a small inconvenience, but I believe the extra security would be worth it.
  6. Thank you both for your advice. This is something that I am passionate about. In fact, it is to develop a system for a league that I am currently in. I continually get frustrated waiting for the current standings to come out. We play once a week, and the new standings usually don't come out until the day of league, and the matchups are determined based on player ratings. Everyone likes to know where they are at in the standings, and hate having to wait the week to get the new standings. I will definitely look into Agile development. It sounds like it is for collaboration projects, but could also help break the project into smaller pieces so its not quite so daunting. I believe I am about done with designing the database. I will start breaking it up, and then start some coding. I will definitely come back here if I have any questions. and provide some updates on the progress.
  7. I am very new to Javascript programing. I haven't actually wrote a real Javascript program yet, and have only minimal exposure to PHP. I have worked through Modern JavaScript Develop and Design, and have PHP and MySQL for Dynamic Web Sites also. My question is if being over ambitious with my first program is a bad thing. The program that I am writing is actually the reason that I started looking into Javascript to begin with. It seemed like it would be a fairly simple project that I would be able to spend a few months learning, and start writing the code. The project ended up being a lot more advanced than I had anticipated. There are many reasons for this, but the main ones are me continually adding features that I hadn't initially planned, implimenting some features that were more difficult than I had anticipated, and probably the biggest reason, that nothing is ever as easy as it first appears.My plan is to just go with it, and rewrite the code as many times as it takes. If it fails, it will just be an invaluable learning experience. Without going into details, it is basically a league scoring system. There are 6-20 teams in each league, and 4-6 players on each team. Each match consists of the individuals on each team going against each other, with the winner getting 10 points. Both individual and team scores are kept, and the team scores are handicapped based on the individual averages. The goal is to make it available on mobile devices so teams can enter their scores at the end of each game, with real time updates and standings based on new scores being entered. In the original design phase, I ended up with about 10 tables, and maybe 6 joiner tables. I do have much of the logic worked out in my head as to how the program will work. My biggest concern is that the project gets scrapped because I got in over my head, but I believe I will be able to get it done, it just might take a while. I feel I am giving myself a fairly generous time table, hoping to have it done by next spring. Any suggestions would be greatly appreciated.
  8. So how did the maximizer project go? As a beginning javascript programmer, it does sound like an interesting project
×
×
  • Create New...