not quite sure under what category to place this in so I’ll post it here…
I found a dynamic page tutorial from youtube and for most part it works.
Problem area: css is lost when the data entry form returns back from processing the user information.
What I have:
Index.php -> Menu, Css information.
/template/contact.php - > user entry form
/inc/formprocessing.php -> handles the user entry from and returns back to contact.php
the CSS link is located in index.php. When contact.php calls the formprocessing.php to do its thing and returns back to the calling page(contact.php) the CSS is lost. Basically the contact.php no longer has a link to the CSS when fromprocessing.php returns back to contact.php.
the formprocessing.php handles the user entry form contact.php and returns back to the contact.php
the script i found is from a tutorial site so i just kept the wording contact.php, but having said that, it doesnt matter which page i click on it still losses the link to the css.
my plan was to bring the user back to the contact(it could be any form) form, with a message stating updated database and have the message fade out and have a blank form to submit new information.
Im not expert at programming and not sure if the script allows me to have the css link to each page with the way i have setup. Basically the CSS is located in the index.php script and its not trickling down to other pages.
Okay, so here is the basics of the setup, everything is routed through index.php, so the stylesheet references, etc will be available all of the time.
The templates, are responsible for saving/processing their own form data, however, this also introduces a limitation, that you can’t use header() or setcookie() within a template as output is already started (there are ways of fixing that, so if it is of concern, just say so).