First of all, no I am not looking to spam. I am a noob and was going through bunch of source code for contact forms but almost everywhere, the receiver’s mail ID was not visible in the source code (Contact US form) where as what I have learned thus far, when I create a form, my id is always visible.
For example, can anyone tell me, how this site’s contact form is hiding its email (I chose this because here the email is explicitly given on the page, I am not looking to spam) where the content of contact-form will go?
I don’t know, but one thing I’d recommend is not using any reserved words for an element name or id. One of your hidden fields has name="id". Recommend giving it a more descriptive name; like "form_id" or whatever.
Oh, ok. Thanks. So, is there an easy way to implement same functionality in my form i.e. no email (the email where the contact form data will go) in source code. I don’t know much PHP except for the very basics that can be applied to any programming languages like, loops, variables and simple functions.
It doesn’t really matter much but right now somehow I am obsessing over it.
With PHP you would check if any data has been posted to the page. If not, you show the form. If instead you do hava data, you process that data and can show a success message.
The people in the PHP forum can take you further with details on how to do that.