#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2014
    Location
    new york
    Posts
    4
    Rep Power
    0

    I need help badly on a php project


    Basically i created an html form that needs to be converted to PHP
    I've been struggling on it for weeks.

    I need a professional to help me out on it. I'm willing to pay him base on this. I want the program to have a database with first name, last name, age, interest, email, male or female. it can allow any users to fill out all their information and once they hit submit they will be login and will be able to download a game on this site, http://stacweb.stac.edu/~rvermily/iDSTEM/gameWindows.zip". Once user hit reset it clears out all the information.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN 
    <head>
    <!-- name of the form -->
    <div align="center;">
    <title>SIGN-IN FORM</title>
    </div>
    
    <!-- change the background of form -->
    <body BGCOLOR= "#FFCC33" TEXT="BLACK"> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <!-- greet any visitor to the page -->
    <div align="center" style="margin-left: -70px; margin-top: 15px;">
    <p><b> Welcome to IDSTEM</b></p>
    </div>
    
    <div align="left">
    <style>
    p{
    padding-left: 100px;
    text-indent: -20px;
    }
    </style>
    
    <!--change size of text -->
    <font size=3><p><b> The Game </b></p></font>
    <p> Download and uncompress the file. </p>
    <p> For best game play choose fantastic and set the resolution to 1280x800. </p>
    </div>
    
    <!-- form for user to add first and last name -->
    <div align="left" style="margin-left: 100px; margin-top: 15px;">
    <form>
    <form action="demo_form.asp" method="get">
    <b>First name:</b><input type="text" name="fname"><br>
    <b>Last name:</b><input type="text" name="lname"><br>
    </form>
    </div>
    
    <!-- creating radio button for user to choose a gender -->
    <div align="right" style="margin-right: 135px; margin-top: 7px;">
    <b>Gender:</b> <input type="radio" name="sex" value="male"><b>Male</b>
    <input type="radio" name="sex" value="female"><b>Female</b>
    </form>
    </div>
    
    <!-- created two drop down menu for age and interest -->
    <div align="center" style="margin-right: -820px; margin-top:-90px;">
    <b>Age: </b>
    <select> 
    <option>10</option>
    <option>11</option>
    <option>12</option>
    <option>13</option>
    <option>14</option>
    <option>15</option>
    <option>16</option>
    <option>17</option>
    <option>18</option>
    <option>19</option>
    <option>20</option>
    <option>21</option>
    <option>22</option>
    <option>23</option>
    <option>24</option>
    <option>25</option>
    <option>26</option>
    <option>27</option>
    <option>28</option>
    <option>29</option>
    <option>30</option>
    <option>31</option>
    <option>32</option>
    <option>33</option>
    <option>34</option>
    <option>35</option>
    <option>36</option>
    <option>37</option>
    <option>38</option>
    <option>39</option>
    <option>40</option>
    <option>41</option>
    <option>42</option>
    <option>43</option>
    <option>44</option>
    <option>45</option>
    <option>46</option>
    <option>47</option>
    <option>48</option>
    <option>49</option>
    <option>50</option>
    </select>
    
    <b>Interest: </b>
    <select>
    <option>Student</option>
    <option>Teacher (K-12)</option>
    <option>Professor</option>
    <option>Administrator</option>
    <option>Game Developer</option>
    <option>Other</option>
    </select>
    </div>
    
    <!-- email form -->
    <div align="left" style="margin-left: 127px; margin-top: 30px;">
    <b>Email: </b> <input type="text" name="email">
    </form>
    </div>
    
    <!-- button to complete the form -->
    <div align="center" style="margin-right: -10px; margin-top: 35px;">
    <BR>
    <button type="reset" value="Reset">RESET</button>
    <form>
    
    <input type="button" value="DOWNLOAD"></button>
    <onClick="http://stacweb.stac.edu/~rvermily/iDSTEM/gameWindows.zip">
    </form>
    </center></div>
    
    <!-- separated period -->
    <div align="center" style="margin-right: 11px; margin-top:20px;">
     ..........................................................................................................................................................................................................................................................................................................
    </div>
    
    <div align="left">
    <p><b>Instructor's Manual</b></p>
    <p>Help for instructors</p>
    </div>
    
    <br>
    <div align="center" style="margin-right: 90px; margin-top: 80px;">
    <p><b> complete the form to access the game<b></p>
    <b><br />
    </body>
    </div>
    </html>
  2. #2
  3. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,472
    Rep Power
    2106
    This looks suspiciously like homework... And when there's no PHP there at all it looks like you've made almost no effort to do it yourself.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2014
    Location
    new york
    Posts
    4
    Rep Power
    0
    well it is a project. but im trying to teach myself PHP which i went online and seem too complicated. let me know where i can look to study and do thid myself?
  6. #4
  7. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1018
    Hi,

    before you jump into PHP, I would actually suggest that you learn HTML. Most of your current markup doesn't even make sense. If you run this through the W3C validator, it cannot even be parsed.

    Solid HTML knowledge is crucial for any web-related work. It doesn't make sense to start with PHP programming if you barely know HTML.

    A good resource for HTML and JavaScript-related information is the Mozilla Developer Network. You should also check out Codeacademy. And of course there are many good books about this topic. Either way, make sure to keep away from “w3schools” and free-floating tutorials written by people who don't know what they're talking about. The above mentioned validator will help you sort out the crap information. For example, the font element is deprecated since 1997(!). Where on earth did you dig that out?

    Comments on this post

    • rickster31 agrees
    • Strider64 agrees
    Last edited by Jacques1; March 25th, 2014 at 08:57 PM.
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  8. #5
  9. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,884
    Rep Power
    6356
    There are tips on how to read the PHP and MySQL manuals in the new user guide in my signature. You should purchase a "for dummies" or O'Reilly book for beginners. That's the best way for you to learn. Established publishing houses with editors and professional writers are better at walking you through complex topics than a blog will be. Just ensure that the book you purchase is made for PHP 5.3 or higher.

    Comments on this post

    • rickster31 agrees
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2014
    Location
    new york
    Posts
    4
    Rep Power
    0

    great suggestion


    i used the validator website and fix it

    <!Doctype html>
    <title>SIGN-IN FORM</title>

    <p> Welcome to IDSTEM</p>

    <p>The Game.
    Download and uncompress the file.
    For best game play choose fantastic and set the resolution to 1280x800.
    </p>

    First name:<input type="text" name="fname"><br>
    Last name:<input type="text" name="lname"><br>

    Gender:<input type="radio" name="sex" value="male">Male
    <input type="radio" name="sex" value="female">Female

    Age:
    <select>
    <option>10</option>
    <option>11</option>
    <option>12</option>
    <option>13</option>
    <option>14</option>
    <option>15</option>
    <option>16</option>
    <option>17</option>
    <option>18</option>
    <option>19</option>
    <option>20</option>
    <option>21</option>
    <option>22</option>
    <option>23</option>
    <option>24</option>
    <option>25</option>
    <option>26</option>
    <option>27</option>
    <option>28</option>
    <option>29</option>
    <option>30</option>
    <option>31</option>
    <option>32</option>
    <option>33</option>
    <option>34</option>
    <option>35</option>
    <option>36</option>
    <option>37</option>
    <option>38</option>
    <option>39</option>
    <option>40</option>
    <option>41</option>
    <option>42</option>
    <option>43</option>
    <option>44</option>
    <option>45</option>
    <option>46</option>
    <option>47</option>
    <option>48</option>
    <option>49</option>
    <option>50</option>
    </select>

    Interest:
    <select>
    <option>Student</option>
    <option>Teacher (K-12)</option>
    <option>Professor</option>
    <option>Administrator</option>
    <option>Game Developer</option>
    <option>Other</option>
    </select>

    Email: <input type="text" name="email">
    <p>Instructor's Manual</p>
    <p>Help for instructors</p>

    <p>complete the form to access the game</p>
    </html>

    and will be teaching myself html5 and CSS3.
    i realize i can change background and everything by using stylesheet.
    thanks for the help and suggestion.

    and will be learning php then.
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Sep 2006
    Posts
    2,122
    Rep Power
    539
    To get started with the basics in a couple of hours, I recommend PHP 5 in easy steps | In Easy Steps.

    Comments on this post

    • rickster31 agrees
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2014
    Location
    new york
    Posts
    4
    Rep Power
    0
    okay, i would look at PHP for dummies in order to write a form correctly.

    and hopefully be able to connect my form with database in XAMPP server.
    thanks.
  16. #9
  17. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,884
    Rep Power
    6356
    Originally Posted by rickster31
    okay, i would look at PHP for dummies in order to write a form correctly.
    No...you'd look at HTML for dummies to write forms correctly. Read the new user guide in my signature, specifically this bit:
    Originally Posted by ManiacDan
    #2 Understand the situation

    The follow items are separate languages and technologies that have nothing to do with each other at the fundamental level:
    PHP
    MySQL
    Regular Expressions
    HTML/CSS
    JavaScript/AJAX/Jquery

    Those items above, when combined properly by a person skilled in all 5 of them, create a fully functioning website. They are NOT the same language, and an expert in one of them is not necessarily an expert in another. Most of the moderators of the PHP boards are experts in all 5 simply through virtue of experience (and being awesome). What most new developers fail to understand is that PHP doesn't "know" anything about your HTML form or your MySQL database. PHP "knows" only PHP things. You must tell it, specifically and explicitly, if you want it to fetch information from a database, or receive information from an HTML form.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.

IMN logo majestic logo threadwatch logo seochat tools logo