ugurpc;11015653 wrote:But if you forget to fill any required place at the form.php and when you press "send your message" button, staff email address (that automatically filled before) disappears. this is unwanted. how can i solve this ?
When you display the form page again, check to see if previous data was POST'ed. If so, insert that data into the HTML that generates the form (don't forget to properly escape this data - e.g. using [man]htmlentities/man - so that it doesn't break your HTML markup).
ugurpc;11015653 wrote:is there any way to hide email addresses from the source view of email-buttons.html page.?
Replace the actual e-mail addresses with meaningless values, e.g. the numbers 1, 2, and 3. Then, inside your PHP script that processes the form data, use some sort of look-up array that translates those numbers into the actual e-mail addresses.