Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
Old 09-27-2006, 07:58 AM NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
CircleOfLinks's Avatar
Extreme Talker

Posts: 243
Name: Danny
Location: Sydney
Trades: 1
Hi, I need a script for a form where ppl can fill out there name, emaill address and a reference ID... then for the form to email me there form that they filled out. PLEASE I NEED ONE ASAP.

anyone who can help that would be greatly appreciated, thanks
danny
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
 
Register now for full access!
Old 09-27-2006, 08:13 AM Re: NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
Kirtan's Avatar
Who Am I?

Posts: 376
Name: Venkat Raj
Location: Salem, South India
Trades: 3
Here is one code with PHP tech.
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<?php
if((isset($_POST['processed'])) && $_POST['processed'] == "yes")
{
        $message = "Name :".$name. "\n";
        $message .= "E-mail :".$email. "\n";
        $responsemsg = "Sir, \n We received your enquiry. \n 
        We will be back with relavant information ASAP. \n
        Thanks & Regards, \n
        Your Company Name";
        if(mail("support@yourcompany.com","Customer Enquiry",$message))
        {
            print "<h2> Your enquiry sent succesfully </h2>";
            mail($email, "Your Enquiry Received", $responsemsg);
        }
        else
        {
            print "<h2> Your enquiry wasn't send. Sorry! </h2>";
        }
}
?>
</head>

<body>
<form name="form1" method="post" action="contact_form.php">
  <table width="200" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td>Name</td>
      <td><input name="name" type="text" id="name"></td>
    </tr>
    <tr>
      <td>Email</td>
      <td><input name="email" type="text" id="email"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="Submit" value="Submit">
      <input type="reset" name="Reset" value="Reset">
      <input name="processed" type="hidden" id="processed" value="yes"></td>
    </tr>
  </table>
</form>
</body>
</html>
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Old 09-29-2006, 04:46 AM Re: NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
CircleOfLinks's Avatar
Extreme Talker

Posts: 243
Name: Danny
Location: Sydney
Trades: 1
hi kirtan, thanks for that but how do i set it up? im not all that good with coding, i now the basics. is there a special name for the file and do i need a htm code aswell?
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Old 09-29-2006, 07:04 AM Re: NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
Novice Talker

Posts: 5
Name: chris
Location: Leicester, UK
Trades: 0
I think the easiest way to do that is...

Copy the code above and name the file something like contact.php

Then in the page you wish to include it on add the code
Quote:
<?php include('contact.php') ?>
Change the page name to whatever.php and upload... If you don't change the extensions to .php it will not work ok
simpleurl is offline
Reply With Quote
View Public Profile Visit simpleurl's homepage!
 
Old 09-29-2006, 07:35 AM Re: NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
CircleOfLinks's Avatar
Extreme Talker

Posts: 243
Name: Danny
Location: Sydney
Trades: 1
ok, thanks mate...
got one more problem sorry to do this to you...
but would you happen to know why my site works fine in IE but when i use mozilla firefox some colours change and also the font??
CircleOfLinks is offline
Reply With Quote
View Public Profile Visit CircleOfLinks's homepage!
 
Old 09-29-2006, 11:44 AM Re: NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
Kirtan's Avatar
Who Am I?

Posts: 376
Name: Venkat Raj
Location: Salem, South India
Trades: 3
Use CSS. so all font type, size and colors will be consistent with both browsers. And do not forget to give talkuputaion if you find our answers are useful.
__________________
All the Buddhas of all the ages have been telling you a very simple fact: Be -- don't try to become.
Kirtan is offline
Reply With Quote
View Public Profile Visit Kirtan's homepage!
 
Reply     « Reply to NEED A SCRIPT FOR A SMIPLE FORM. can any one help??
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.23162 seconds with 12 queries