I am a total novice/student and have been stuck on this 1 issue for 9 weeks now. I’m sure 9 weeks of trial and error and absolute guesswork should confirm my determination to do this on my own but… alas.
I have tried everytihng I could think of to make this form work and I have just thrown in the towel and am now reaching out for assistance.
I am just unable to comprehend what is being said or what I am being instructed to do in the Sessions Online School of Web Design Lecture 4. The lecture does not explain anything it just seems to ramble on and on and on and for a novice all the chatter is meaningless. AND everything you see in the code in the zip file are what I am instructed to place in the code.
I am working with Dreamweaver CS5. Up to this point I have more or less understood what I was being told and… as instructed I have gone back followed (step-by-step) Lecture 2, Lecture 3 and Lecture 4 but when I get to a point as described below I am lost. The school faciltiator has thrown up his hands in frustration stating, “I don’t know what the instructions are saying or what the instructor is asking the students.” and he is proficient.
Also, I have sent an e-mail requesting support from Sessions and the response I get is; “read the lecture the answer is in the book.” What I’m asking is, how can anyone expect me to undertsnad anything at all if nothing is explained? There is no explanation either on where to place the code it just says insert the code in the file.
I am stuck here;
(the following is a cut and paste directly from Lecture 4)
You need to make one other change to your form file, form_test3.inc, to make the logic file work correctly. You need to change the name of the script that runs when the form is submitted. You need to change the action attribute of the tag to run the same script, rather than a different script. PHP provides a built-in variable that you can use for this purpose. Place the following line in form_test3.inc in place of the previous line:
echo “”;
and I am suppose to change the code from the following;
echo “”;
(and then the lecture states… again a direct copy and paste from the lecture)
Remember, this script only works correctly if you made the changes to the form file, form_test3.inc. You need to add the hidden field and change the action attribute on the tag to call the same script.
And this I have done umpteen times over and over and over and it still doesn’t work.
Anyway, once I have made the changes as described in the above, I save it, go to the browser, enter the data, click “submit” button. Then… all the data disappears and the form remains as if nothing had happened at all.
It should show an error if I missed data - or - it should say all data is entered in the form.
If someone could just give me the code then I would be able to understand once I compare it to what is being said in the lecture. other than that its just hopeless in trying explain to me in PHP “language”.
Please find attached the zip files as required;
The URL for the form is thus; http://www.ctizya.com/ctizya/php_exercises/lesson4/display_form.php
Thank you all for your consideration and kind understanding it is well appreciated believe me (that is if anyone chooses to help me).
Php Files.zip (4.63 KB)