php tutorials, php form validation
Archive Tutorials
Discussion Home
Login / Register

Board List
PHP programming
General

Links
How to save gas 25% or more
Marshall Reddick
Network Marketing Forums
Income Tax Help
Lose 10 Pounds in 3 Weeks
PHP Forum Script
Online Contest

Learn PHP in 47 hours!

Back to General

Search

want help in Flash php script for own feedback form want help in Flash php script for own feedback form

want help in Flash php script for own feedback form

by gonnantravis on Wed 04/05/2006 05:04 AM

Hi, 

I am a new bie in this php thingy.  Now I am developing my feeback form in my website.  It has Name, Company, Email, City, Country, Where did you hear abt us, and last feeback message? All the details entered in the respective fields should come to my email id.  I have done whole website in flash. 

Can anybody here help me in creating the PHPscript? 

Regards, 

Gonnan Travis

[Reply] [Back to Top]

make a form first

by uclaboyz on Wed 04/05/2006 09:00 AM

1.  Use dreamweaver, frontpage, or your favorite HTML editor to make your webpage containing the contact form. 

2.  Then you would want to rename the webpage file to .php extension. 

3.  Let's say you named the file contactus.php, change the form action="contactus.php" 

4.  Name your submit button, for example,  

5.  At the top of your contactus.php you would want to add your code to validate your form entry, and email the form to you: 

<?
if(isset($_POST["contact_button"]){
     // you may validate user input here
     if(empty($_POST["..."]) || empty($_POST["..."])){
          // echo your entire HTML form webpage here with error message
     } else {
           mail("to","subject","message","header");
          // redirect to confirmation page or echo your own HTML here.
     }
} else {
     // echo your entire HTML form webpage here
}
?>

[Reply] [Back to Top]

© Copyright 2006-2007.  All Rights Reserved. Site hosted by Small Business Web Design
how to start a blog | parenting tips website | Passive Income | baby websites