Please help me with this " I am Begging"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
mgwarren
Forum Newbie
Posts: 4
Joined: Sat Feb 21, 2009 2:58 pm

Please help me with this " I am Begging"

Post by mgwarren »

I am taking a class in programming, and to be perfectly honest I am freakin lost. I have this project due Monday and cannot get anything to work after 4 hours of trying. Listed below is the instructions for this project. I am begging anyone that will help me with this. I need this one class to graduate. I think if I could see this code done in full I could study it enough to learn how to write this samething or simular.

Instructions:
1. You are to create a simple webpage that includes an HTML form using a POST method and an action sending the data to a separate PHP page. The HTML document should be named UserSurvey.html and the PHP page should be UserSurvey.php.
2. This HTML form should be XHTML compliant. The PHP document should include comments describing the sections of the page.
3. All HTML form variables should have corresponding variable names in the PHP page.
4. In an effort to use all types of forms (text fields, radio buttons, checkboxes, drop-down menus, and password fields), you should design your survey ahead of time on paper, then write the corresponding HTML code. For example, first and last names might be text fields while gender might be radio buttons. Another example would include checkboxes when asking the user which sports they enjoy. Just an idea.
itp
Forum Commoner
Posts: 67
Joined: Fri Jun 15, 2007 6:50 am

Re: Please help me with this " I am Begging"

Post by itp »

OK post what you have so far...
mgwarren
Forum Newbie
Posts: 4
Joined: Sat Feb 21, 2009 2:58 pm

Re: Please help me with this " I am Begging"

Post by mgwarren »

HTML...............


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UserSurvey</title>
</head>
<html
<body<form action="UserSurvey.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<form>

<input type="radio" name="sex" value="male"/> Male
<br>
<input type="radio" name="sex" value="female"/> Female
</form>

<input type="submit" />
</form></body>
</html>



PHP......

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>UserSurvey</title>
</head>

<html
<body>
UserSurvey <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.

You are <?php echo $_POST["sex"]; ?> male or female.
</body>
</html>
mgwarren
Forum Newbie
Posts: 4
Joined: Sat Feb 21, 2009 2:58 pm

Re: Please help me with this " I am Begging"

Post by mgwarren »

I am a network specialist at my job and have little experience with coding, its not that I don't want to learn code I dont have time. I work fulltime, I go to school full time and I repair PC's in between along with a family. I just need to get through this class as easy as possible.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Please help me with this " I am Begging"

Post by onion2k »

mgwarren wrote:I am begging anyone that will help me with this. I need this one class to graduate.
If it's that important why did you leave it until the weekend before the deadline?

This forum is not here to help people 'cheat' their way through a class by providing code that you couldn't have written yourself. I'll leave this thread open for now, so you can discuss what you've written yourself, and people can help you figure out a solution, but if people start posting code they've written for you I'm going to close it.
watson516
Forum Contributor
Posts: 198
Joined: Mon Mar 20, 2006 9:19 pm
Location: Hamilton, Ontario

Re: Please help me with this " I am Begging"

Post by watson516 »

mgwarren wrote: Instructions:
1. You are to create a simple webpage that includes an HTML form using a POST method and an action sending the data to a separate PHP page. The HTML document should be named UserSurvey.html and the PHP page should be UserSurvey.php.
2. This HTML form should be XHTML compliant. The PHP document should include comments describing the sections of the page.
3. All HTML form variables should have corresponding variable names in the PHP page.
4. In an effort to use all types of forms (text fields, radio buttons, checkboxes, drop-down menus, and password fields), you should design your survey ahead of time on paper, then write the corresponding HTML code. For example, first and last names might be text fields while gender might be radio buttons. Another example would include checkboxes when asking the user which sports they enjoy. Just an idea.
1. Very basic html.

Code: Select all

<form action="UserSurvey.php" method="post">
2. Just make everything xhtml compliant and comment your php. Pretty simple. Don't use font tags, b, i, etc. Any tag that doesn't have a closing tag ends with <space>/>. // = PHP comment, /* */ =PHP comment

3. Make sure you account for every input in the php code. Pretty simple as well. Don't create any unused inputs.

4. Go grab a pen and paper and draw things out before you start coding. Could save you some time and make it more organized therefore making it easier to understand.

This is probably more then anyone else is going to give you. This is very basic stuff.
Citizen
Forum Contributor
Posts: 300
Joined: Wed Jul 20, 2005 10:23 am

Re: Please help me with this " I am Begging"

Post by Citizen »

If you spend about an hour reading the guide and ****doing**** the examples here:

http://devzone.zend.com/node/view/id/627

This assignment is pretty much the most basic applications for php. You'll be good to go by page two.

The best way to learn is to test out your code. var_dump() every page's output if you need to in order to get a good base for what your code is creating.
mgwarren
Forum Newbie
Posts: 4
Joined: Sat Feb 21, 2009 2:58 pm

Re: Please help me with this " I am Begging"

Post by mgwarren »

If it's that important why did you leave it until the weekend before the deadline?

This forum is not here to help people 'cheat' their way through a class by providing code that you couldn't have written yourself. I'll leave this thread open for now, so you can discuss what you've written yourself, and people can help you figure out a solution, but if people start posting code they've written for you I'm going to close it.
Why would you assume I waited till the weekend? I got the assignment Thursday night and I worked on it last night for 3 hours and today I spent 2 more hours on this! I appreciate any help that I can get, I am not trying to cheat my way through anything. First I didnt ask anyone to do this for me, I ask for some help with it. Don't judge me when you know nothing about me or my situation except for what I tell you. I dont care if you close it! you can hug my nut!!!!!!!!!!!!!! you self rightious prick!!!
Citizen
Forum Contributor
Posts: 300
Joined: Wed Jul 20, 2005 10:23 am

Re: Please help me with this " I am Begging"

Post by Citizen »

mgwarren wrote:
If it's that important why did you leave it until the weekend before the deadline?

This forum is not here to help people 'cheat' their way through a class by providing code that you couldn't have written yourself. I'll leave this thread open for now, so you can discuss what you've written yourself, and people can help you figure out a solution, but if people start posting code they've written for you I'm going to close it.
Why would you assume I waited till the weekend? I got the assignment Thursday night and I worked on it last night for 3 hours and today I spent 2 more hours on this! I appreciate any help that I can get, I am not trying to cheat my way through anything. First I didnt ask anyone to do this for me, I ask for some help with it. Don't judge me when you know nothing about me or my situation except for what I tell you. I dont care if you close it! you can hug my nut!!!!!!!!!!!!!! you self rightious prick!!!
Onion2k is one of the most respected members here. You should heed any advice he gives.

Suggestion: if time is a factor, spend more time studying and experimenting with code, less time arguing.

If you have at least one hour, start doing all of the examples in the step by step php guide that i posted, and post your updated code here
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Please help me with this " I am Begging"

Post by califdon »

There's nothing more to be said about this kind of a post. Topic locked.
Locked