I am looking for PHP contact form [URL=”http://w3layouts.com/demos/sitename/web/contact.html”]for this template[/URL]. It will also include code for a redirect link to a Thank you page. The redirecting code I have is from an older mailing form, but the mailing form doesn’t work for the new template.
[code=php] timeOut = “0001”;
newSite = “thank_you.html”;
function timer() { self.setTimeout(“self.location.href = newSite;”,timeOut); } [/code]
@jamesx521authorAug 12.2014 — #[I]ginerjm[/I], if you scroll down on the link I provided it shows a google map, then beneath that are fields for [I]Name[/I], [I]Email[/I], [I]Subject[/I], and [I]Message[/I]. I assume I would use PHP code for the action: action="contact.php", and that's what I'm looking for.
@ginerjmAug 12.2014 — #This forum is for people to show code for which they have a problem. Not to take us to who knows where for spam, viruses or whatever harm idle minds have in store for us. That said, I didn't see a link in your message until you just now told me to look for one.
A little more explanation about what problem you are having would be in order. Unless you are asking us to write your code for you, which we won't do.
PS - Why not just write your own contact form? A pretty basic thing to do, whether you're new to php or not.
@Kevin2Aug 12.2014 — #In defense of ginerjm: I didn't see the link either, but after knowing one was there I clicked on it, come what may ?. See below.
In defense of OP: It is very difficult to tell the difference between 'standard text' and text that is a link. The font-weight, color, etc. in this forum's CSS make it almost impossible to differentiate between them. Unfortunately, one must hang around here a few months to know that when you need to post a link it's better to just paste the URL rather than highlight/[click link button]/paste URL.
@jamesx521authorAug 13.2014 — #[I]ginerjm[/I], I'm actually not a developer, so this stuff isn't easy for me. I can edit the code little bit here and there, but I mostly copy and paste. [I]Kevin2[/I], the validator is looking at the HTML of the page, and the PHP is my concern.
Thank you for contacting us. We will be in touch with you very soon.
<?php
}
?> [/code]
I also see that the HTML is calling for a Thank You page, but the PHP code toward the end has its own Thank you message that probably should appear without launching the Thank you HTML page? So, at this point I probably shouldn't even have a Thank You HTML page if the PHP is going to show this message... and where does it show it?