views:

47

answers:

3

We just started PHP in my webscripting class today, and I'm already having problems with my first PHP assignment. Its more of me not understanding what is going on or overlooking something I don't fully know yet.

The code here: http://codepad.org/KnHda3iS is supposed to go to php4_1input.php but upon submitting it goes to back to itself (this page is called php4_1storyselphp). I'm not exactly sure why it does this but I presume I overlooked something really silly or just haven't learned why this is happening yet.

Any help would be much appreciated.

+1  A: 

You already have a form tag opened under the body tag. Remove it. Problem solved.

Nirmal
Wow. See. I figure it was something silly. Appreciate it. :D
Chris
+1  A: 

You have two form elements on the page. This will work: http://codepad.org/3laSb9c2

Jacob Relkin
A: 

You have a hanging form tag & also the action on the form should just be /cgi-bin/assignment4/php4_1input.php

Equistatic
Absolute URL in action is not a problem for GET submissions.
Nirmal