Ronald B Stamets Website Design and Development Corner of logo

Ronald B Stamets, Web Site Design and Development Services

top content bar
Home Website design Domains & Hosting E-Commerce Additional Services Contact Us About Us Web Design Tutorials FAQ Pay Bill Site Map Request Estimate

Creating the main form

email_form_1.php is the file that a link, such as a "Contact Us" link might point to. It simply presents a standard form by calling the form display function from form_output_fns.php.

Open the email_form_1.php file in your forms folder. Then copy and paste the code below into it and save and close it.


<?php // Start the PHP parser

/*Activate the form_output_fns.php file to make it's functions accessible.*/
include ('form_output_fns.php');
?> <!-- Stop the PHP and switch to good ol html -->
<html>
<head>
<body>
<h4>Welcome To My Hidden Email Form.</h4>
<?php // Start the PHP parser to access the function
display_email_form($f_name,$l_name,$e_mail,$subject,$content);
?> <!-- Stop the PHP parser and wrap up the page html tags -->

</body>
</html>


<<< Page 3 Page 5 >>>

The page to call the email form to display works like this.

1. Start PHP to activate the include call.

2. Fire up the my_email_output.php file by including it right up front.

3. Switch back to really basic html tags to display the page.

4. Re-start PHP to call the display_email_form() function in my_email_output.php

5. Shut down PHP and end the html tags.

Simple As That! Only 2 lines of PHP code does all the work!

home
 
Website Design
 
Domains Hosting
 
ECommerce
 
addl services
   
Contact Us
 
About Us
 
Tutorials
 
Design FAQ
 
Pay Bill
 
site map