On page 166, step 13, you say to set the character width and numline fields in
the property Inspector. However on page 184 these disappear without comment. I
did insert the additional CSS to set these values, but because I am working on a
page built using one of my templates I had to insert it as inline code some way
into the page, and Dreamweaver does not recognise it, but IE does, and this
caused me considerable confusion.
The submit page works nicely, except that if you hit 'Submit' with invalid data,
an IE error box pops up, as shown below, but the warning messages are never
Microsoft Internet Explorer
! The following error(s) occurred:
-name is required.
-email must contain an e-mail address.
-message is required.
I tried using the browser to look at the code actually sent to it, and was
surprised to discover an error message, stating:
<form action="<br />
<b>Notice</b>: Undefined index: Technical/PHP_SELF in
<b>D:\Websites\Corybas\Feedback.php</b> on line <b>109</b><br />
The original read:
<form action="<?php $_SERVER['Technical/PHP_SELF'];?>" method="post"
I have no idea where this came from, but can only presume I made some wrong
choice in Dreamweaver, as I certainly would not have thought to put it in
myself. However when I corrected this the behaviour was unchanged.
As before, you can try it out for yourself by going to http://www.yqcomputer.com/
and clicking the yellow '! or ?' envelope to try it.
I went through the whole procedure again this evening, and built another page
with a form. I did not get the error above, but I was unable to find the submit
button, as described on page 166, section 13. I thought I had used the 'insert
radio button' yesterday, but when I did so today I had to enter the code
manually to convert it to a submit button.
One refinement which would be nice would be to have the cursor automatically
positioned in the name field when the page pops up. Little touches like this
make a big difference to the users' perception of the friendliness of the site.
I still do not understand how this page works. As far as I can understand the
code, it appears to be single pass, yet the page behaves as if it is in a loop.
Is the page procedure called repeatedly?
I would also like to know how to modify it so that it closes automatically after
the message is sent.
With many thanks,