Santuzzo
Daemon Poster
- Messages
- 675
- Location
- Amsterdam, The Netherlands
Hi,
I have been putting together my website by usage of a free template.
So far I have been able to change the template to my needs and - despite knowing close to nothing about HTML, CSS and PHP coding - I am quite pleased with the results I have gotten thus far by using google searches and reading online posts on coding, etc.
Now I have run into some questions and problems which I'd like to ask any of you who are knowledgeable about this stuff to help me if you can:
1. I have added some code in my .htaccess file to remove the file extension and I have tried to add a trailing slash. However, what happens is either the trailing slash does NOT work/appear, OR it does appear but then something weird happens when the site is on a smaller screen (mobile mode): the menu button on mobile mode does not work anymore, and when I hover over it I can see the link that shows in the bottom left of the browser ends on #menu while it ends on #navPanel when hover over without the trailing slash added.
2. is the trailing slash at the end a good idea anyway? I'm just wanting to have it there as I see many sites having it, so I don't really know if it bears any benefit other than aesthetics.
3. I have a php-contact form on my site which I set up in a way that it goes to an error page (which displays the form but also an error message on top of it) unless all required fields have a valid entry and an anti-spam checkbox is checked. all of this works well, however I would like to keep the entries someone has already enter when it goes to the error page, so that in case they just forgot to check the box they don't lose whichever info they have already entered. is there a way I can save the entries from the php form and have them re-entered in the contact form when the page displayed the error? can I somehow use a $name variable or something and have that appear in the name field on error mode?
I'd very much appreciate any help with any of this.
thanks,
Lars
I have been putting together my website by usage of a free template.
So far I have been able to change the template to my needs and - despite knowing close to nothing about HTML, CSS and PHP coding - I am quite pleased with the results I have gotten thus far by using google searches and reading online posts on coding, etc.
Now I have run into some questions and problems which I'd like to ask any of you who are knowledgeable about this stuff to help me if you can:
1. I have added some code in my .htaccess file to remove the file extension and I have tried to add a trailing slash. However, what happens is either the trailing slash does NOT work/appear, OR it does appear but then something weird happens when the site is on a smaller screen (mobile mode): the menu button on mobile mode does not work anymore, and when I hover over it I can see the link that shows in the bottom left of the browser ends on #menu while it ends on #navPanel when hover over without the trailing slash added.
2. is the trailing slash at the end a good idea anyway? I'm just wanting to have it there as I see many sites having it, so I don't really know if it bears any benefit other than aesthetics.
3. I have a php-contact form on my site which I set up in a way that it goes to an error page (which displays the form but also an error message on top of it) unless all required fields have a valid entry and an anti-spam checkbox is checked. all of this works well, however I would like to keep the entries someone has already enter when it goes to the error page, so that in case they just forgot to check the box they don't lose whichever info they have already entered. is there a way I can save the entries from the php form and have them re-entered in the contact form when the page displayed the error? can I somehow use a $name variable or something and have that appear in the name field on error mode?
I'd very much appreciate any help with any of this.
thanks,
Lars
Last edited: