Using A Php Contact Form - Please Help!

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #12) by gaea on Mar 31 2006, 06:01 AM. (Line Breaks Removed)
QUOTE(Tyssen @ Mar 29 2006, 05:48 AM) Couple of problems with your script gaea:1. It doesn't check the input for email header injection attempts and clean it before processing.2. If there are errors in the form, it returns the user to an empty form with no error messages to let them know what is wrong.Both of these are good points (though the script *does* return error messages...so i... read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

Using A Php Contact Form - Please Help!

Cena_54
I have this followowing code stored in my /contact/index.php webpage:

CODE
<html>

<head>
<title>PHP Form Mailer - phpFormMailer (easy to use and more secure than many cgi form
mailers)</title>
<style>
BODY{color:#000000; font-size: 8pt; font-family: Verdana}
.button {background-color: rgb(128,128,128); color:#ffffff; font-size: 8pt;}
.inputc {font-size: 8pt;}
</style>
</head>

<body>

<form name="phpformmailer" action="contact.php" align="center" method="post">
  <div align="center"><center><table bgcolor="#F2F2F2" width="528" cellspacing="6">
    <tr>
      <td width="159"><strong>Contact Us</strong></td>
      <td width="349"><a
      href="http://thedemosite.co.uk/phpformmailer/source_code_php_form_mailer_more_secure_than_cgi_form_mailers.php"><small>PHP
      Form Mailer - phpFormMailer <strong>- Source code</strong></small></a></td>
    </tr>
    <tr>
      <td align="right" width="159"><small>Your name:</small></td>
      <td width="349"><font face="Arial"><input class="inputc" size="29" name="name"></font></td>
    </tr>
    <tr>
      <td align="right" width="159"><font color="#000080" size="1">*</font><small> Your email
      address:</small></td>
      <td align="left" width="349"><font face="Arial"><input class="inputc" size="29"
      name="email"></font></td>
    </tr>
    <tr align="middle">
      <td align="right" width="159"><font color="#000080" size="1">*</font><small> Confirm email
      address:</small></td>
      <td width="349" align="left"><font face="Arial"><input class="inputc" size="29"
      name="email2"></font></td>
    </tr>
    <tr>
      <td align="right" width="159"><font color="#000080" size="1">*</font><small> Subject:</small></td>
      <td width="349"><font face="Arial"><input class="inputc" size="29" name="thesubject"></font></td>
    </tr>
    <tr>
      <td align="right" width="159">&nbsp;<p><font color="#000080" size="1">*</font><small> Your
      request or query:</small></td>
      <td width="349"><textarea style="FONT-SIZE: 10pt" name="themessage" rows="7" cols="27"></textarea></td>
    </tr>
    <tr>
      <td width="159"></td>
      <td width="349"><script language="JavaScript"><!--
function validateForm()
{
var okSoFar=true
with (document.phpformmailer)
{
  var foundAt = email.value.indexOf("@",0)
  if (foundAt < 1 && okSoFar)
  {
    okSoFar = false
    alert ("Please enter a valid email address.")
    email.focus()
  }
  var e1 = email.value
  var e2 = email2.value
  if (!(e1==e2) && okSoFar)
  {
    okSoFar = false
    alert ("Email addresses you entered do not match.  Please re-enter.")
    email.focus()
  }
  if (thesubject.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the subject.")
    thesubject.focus()
  }
  if (themessage.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Please enter the details for your enquiry.")
    themessage.focus()
  }
  if (okSoFar==true)  submit();
}
}
// --></script><input type="button" class="button"
      value="Send" name="B1" ONCLICK="java script:validateForm()"><small> <small>You must fill in
      the fields marked with a *</small></small></td>
    </tr>
  </table>
  </center></div>
</form>
</body>
</html>


and the following code stored in my /contact.php webpage obviously with the appropriate variables and text changed though:

CODE
<?php
/* PHP Form Mailer - phpFormMailer v2.1, last updated 30th Nov 2005 - check back often for updates!
   (easy to use and more secure than many cgi form mailers) FREE from:
                  www.TheDemoSite.co.uk
      Should work fine on most Unix/Linux platforms */

// ------- three variables you MUST change below  -------------------------------------------------------
$valid_ref1="http://Your--domain/contact.html";// chamge "Your--domain" to your domain
$valid_ref2="http://www.Your--domain/contact.html";// chamge "Your--domain" to your domain
$replyemail="YOU@Your--domain";//change to your email address
// ------------------------------------------------------------

//clean input in case of header injection attempts!
function clean_input_4email($value, $check_all_patterns = true)
{
$patterns[0] = '/(anti-spam-content-type:)/';
$patterns[1] = '/to:/';
$patterns[2] = '/cc:/';
$patterns[3] = '/(anti-spam-bcc:)/';
if ($check_all_patterns)
{
  $patterns[4] = '/r/';
  $patterns[5] = '/n/';
  $patterns[6] = '/%0a/';
  $patterns[7] = '/%0d/';
}
//NOTE: can use str_ireplace as this is case insensitive but only available on PHP version 5.0.
return preg_replace($patterns, "", strtolower($value));
}

$name = clean_input_4email($_POST["name"]);
$email = clean_input_4email($_POST["email"]);
$thesubject = clean_input_4email($_POST["thesubject"]);
$themessage = clean_input_4email($_POST["themessage"], false);

$error_msg='ERROR - not sent. Try again.';

$success_sent_msg='<p align="center"><strong>&nbsp;</strong></p>
                   <p align="center"><strong>Your message has been successfully sent to us<br>
                   </strong> and we will reply as soon as possible.</p>
                   <p align="center">A copy of your query has been sent to you.</p>
                   <p align="center">Thank you for contacting us.</p>';

$replymessage = "Hi $name

Thank you for your email.

We will endeavour to reply to you shortly.

Please DO NOT reply to this email.

Below is a copy of the message you submitted:
--------------------------------------------------
Subject: $thesubject
Query:
$themessage
--------------------------------------------------

Thank you";

// email variable not set - load $valid_ref1 page
if (!isset($_POST['email']))
{
echo "<script language="JavaScript"><!--n ";
echo "top.location.href = "$valid_ref1"; n// --></script>";
exit;
}

$ref_page=$_SERVER["HTTP_REFERER"];
$valid_referrer=0;
if($ref_page==$valid_ref1) $valid_referrer=1;
elseif($ref_page==$valid_ref2) $valid_referrer=1;
if(!$valid_referrer)
{
echo "<script language="JavaScript"><!--n alert("$error_msg");n";
echo "top.location.href = "$valid_ref1"; n// --></script>";
exit;
}
$themessage = "name: $name nQuery: $themessage";
mail("$replyemail",
     "$thesubject",
     "$themessage",
     "From: $emailnReply-To: $email");
mail("$email",
     "Receipt: $thesubject",
     "$replymessage",
     "From: $replyemailnReply-To: $replyemail");
echo $success_sent_msg;
/*
  PHP Form Mailer - phpFormMailer (easy to use and more secure than many cgi form mailers)
   FREE from:

    www.TheDemoSite.co.uk       */
?>


However, what my problem is, is when I click on the send/submit button nothing happens.
Please help.
Thanks a lot in advance.

 

 

 


Reply

Albus Dumbledore
just to clarify somthing...both of these files are in the same file correct??

as in it simply goes looking like this

contact/ <folder....
contact.php
index.php

Reply

Tyssen
Try taking your form validation script out and see what happens.

Reply

Lozbo
Nothing happens or it does send you to /contact.php? when you hit the button, check the address bar and see where is it now, if you are still in index.php, there should be a problem with your javascript, else the problem should be in that php, in which I'll have to take a closer look... But try these things first....

Reply

gaea
A silly question, but you've checked to make sure that php scripts work fine on your server, correct? If so, then what do you mean "nothing happens?" As in it goes to the contact.php page and says the message wasn't sent; or when you click the button it doesn't even change to the contact.php page. If you problem is the latter then it's almost assuredly the javascript code that is bugging out. So remove the form validation code and then try to see if it works. If so we can help you troubleshoot the validation code...or you could simply rewrite it in php which might be easier, and would work with all browsers (even if someone has an anchient computer).

If you want to just use/modify another script lemme know and i'll be happy to post the one I wrote (which i know for a fact is in working condition).

Reply

Lozbo
Hey gaea, I would like to see that script you talk about, could you post it please? You mean a form validation script right?

Reply

gaea
QUOTE(Lozbo @ Mar 28 2006, 03:37 AM) *

Hey gaea, I would like to see that script you talk about, could you post it please? You mean a form validation script right?


Alright, here you go (this is a parred down version...without all my site specific crap). If you want help modifying this script to add extra functions just lemme know what you want, and i'll try and help you add it.

Like the origonal script that you posted this uses two pages, one with the origonal form, and one with the action. It is entirely possible to write the entire thing in one page instead...but this is just the way that I did it.

The first page is named 'contact.php'. It merely gathers the information to send to the second page. It is importaint that this be a php script if you want it to log the person's IP adderess, Refering page, and browser type.


Contact.php:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>Feedback php script</title>
</head><body>

<form method="post" action="sendmail.php">

<!-- DO NOT change ANY of the php sections -->
<?php
/* This section gathers the user's IP adderess, refering page, and browser name */
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>

<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />

Write any message you care to include here<br /><center>

<table border=0><tbody><tr><td>
<font color="red">*</font>Name: </td>
<td><input type="text" name="visitor" size="51" /></td></tr>
<tr><td><font color="red">*</font>Email: </td>
<td><input type="text" name="visitormail" size="51" /></td></tr>
<tr><td>&nbsp;Subject: </td>
<td><input type="text" name="subject" size="51" /></td></tr>
<tr><td><font color="red">*</font>Message: &nbsp;&nbsp;</td>
<td><textarea name="notes" rows="7" cols="50"></textarea></td>
<tr><td></td><td align="center"><input type="submit" value="Send Mail" /></td></tr></tbody></table></center>
</form>
<p>&nbsp; </p>
</body></html>


The second page is named 'sendmail.php'. It is responcible for all the error checking (if a problem is found it lists the problem, and gives the user the form to resubmit), as well as the actual sending of the email, and writting a confirmation message.

sendmail.php:
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head><title>Feedback php script</title>
</head><body>
<?php
$passedTests = "yes";

if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>The following error(s) encountered:</h2>";
echo "<font color='red'>*Invalid email address. <br /></font>";
$passedTests = "no";
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
    if($passedTests == "yes"){
    echo "<h2>The following error(s) encountered:</h2>";
    }
echo "<font color='red'>*Please fill in ALL of the required fields. <br /></font>";
$passedTests = "no";
}

/*Prepare to send the email.  Formatting etc */
$todayis = date("l, F j, Y, g:i a");

$subject = $subject;

$subject2 = "****Subject of email you want to appear****";

$notes = stripcslashes($notes);

$message = " $todayis \n
From: $visitor ($visitormail)\n
Subject: $subject \n
Message: $notes \n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
";

$from = "From: $visitormail\r\n";

/*If all checks are passed, then send the email and display a thankyou message*/
if($passedTests == "yes"){
mail("****Your Email Adderess Here******", $subject2, $message, $from);
?>
<p align="center">
<h2>Thankyou for your feedback!</h2>
<center>

<br /><table border=0><tbody><tr><td>
Date: </td>
<td><?php echo $todayis ?></td></tr>
<tr><td>Name: </td>
<td><?php echo $visitor ?> ( <?php echo $visitormail ?> )</td></tr>
<tr><td>Subject: </td>
<td><?php echo $subject ?></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Message: &nbsp;&nbsp;</td>
<td><?php $notesout = str_replace("\r", "<br/>", $notes);
echo $notesout; ?></td></tr></tbody></table></center>

</p>
<?php
}
else{
/*Otherwise, display the orgional form again to allow the user to correct their input*/
?>

<br /><form method="post" action="sendmail.php">

<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>

<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
<center>
<table border=0><tbody><tr><td>
<font color="red">*</font>Name: </td>
<td><input type="text" name="visitor" size="51" /></td></tr>
<tr><td><font color="red">*</font>Email: </td>
<td><input type="text" name="visitormail" size="51" /></td></tr>
<tr><td>&nbsp;Subject: </td>
<td><input type="text" name="subject" size="51" /></td></tr>
<tr><td><font color="red">*</font>Message: &nbsp;&nbsp;</td>
<td><textarea name="notes" rows="7" cols="50"></textarea></td>
<tr><td></td><td align="center"><input type="submit" value="Send Mail" /></td></tr></tbody></table></center>
</form>
<?php
}

?>
<p>&nbsp; </p>
</body></html>


I tried to make comments explaining things...lemme know if you need help clearifying any of it. Please don't forget to change the subject and email fields to match your requirements.

 

 

 


Reply

Lozbo
Alright, so you take the validation thing inside the sendmail.php... I was kinda actually hoping you had it in JavaScript, more like something AJAX.. But thanks anyway! (I know that those things wont work if the user has js turned off but I know its a very little percentage so I can live with it ohmy.gif tongue.gif )

Thanks for your help anyway!

Reply

gaea
QUOTE(Lozbo @ Mar 29 2006, 01:41 AM) *

Alright, so you take the validation thing inside the sendmail.php... I was kinda actually hoping you had it in JavaScript, more like something AJAX.. But thanks anyway! (I know that those things wont work if the user has js turned off but I know its a very little percentage so I can live with it ohmy.gif tongue.gif )

Thanks for your help anyway!


I'm not quite sure why you'd want to have it in java script...php is sssoooo much more powerful, and easy to use/code.

If you really want to use javascript there are many premade scripts out there. A fairly customizable form validator script can be found at: http://www.javascript-coder.com/html-form/...alidation.phtml.

There are many good tutorials out there as well. I'm partial to htmlgoodies.com, mostly because i learned alot from their tutorials. The relevant page would be: http://www.htmlgoodies.com/primers/jsp/article.php/3589631

If you really have your heart set on using javascript i can help you costumize the code to suit your site...but if i were you i'd *strongly* recommend trying to do it in php...as you have to use it to send the email anyways...and it is easier, less buggy, more secure, and compatible with 100% of the people looking at your page.

Reply

Tyssen
Couple of problems with your script gaea:
1. It doesn't check the input for email header injection attempts and clean it before processing.
2. If there are errors in the form, it returns the user to an empty form with no error messages to let them know what is wrong.

Reply

Latest Entries

gaea
QUOTE(Tyssen @ Mar 29 2006, 05:48 AM) *

Couple of problems with your script gaea:
1. It doesn't check the input for email header injection attempts and clean it before processing.
2. If there are errors in the form, it returns the user to an empty form with no error messages to let them know what is wrong.


Both of these are good points (though the script *does* return error messages...so im not quite sure where you got that from). Adding the origonal information back into the form would take about 2 seconds worth of time, and so is deffinatly worth doing.

As far as header injection attempts...that is also a good point. But where do you stop? There are sssooooo many possible exploits that if you wanted to write a 100% secure script it'd take you a rather long time. What would you say qualifies as "good enough?" Removing any occurances of "\r" or "\n?" And 0x0D/%0D, and %0A? Or stopping all the MIME vulnerabilites? Or other vunrabilities that randomly appear on the net? Where do you draw the line?

Also, no offence, but paying money to use a feedback form script seems rather ludacris to me. Except if you are really desperate and don't know how to write your own code.

----------
EDITED:
----------

Anyways, after a little work i added both of your suggestions to my script. It only protects against the From field being exploited by "\r", "\n?", "0x0D/%0D", and "%0A". Which means that it isn't 100% secure...but should stop virtually all attempts to use the form to send email to other people instead of (or as well as) the origonal hard coded email adderess. Which means that your feedback form can't be used by a spammer to send out unsollicited emails. I also had it email the spammer/hijacker's IP adderess back to you incase you wish to report them.

The new code is something like this:
(sendmail.php)
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head></head><body>
<table bgcolor="#ffffff" cellpadding="28"><tbody><tr><td>

<?php
$passedTests = "yes";
$Hijacked = "no";
$HijackAttempt=$visitormail;

   if (eregi("\r",$HijackAttempt) || eregi("\n",$HijackAttempt) || eregi("%0A",$HijackAttempt) || eregi("0x0D/%0D",$HijackAttempt))
   {
   $passedTests = "no";
   $Hijacked = "yes";}


    if($Hijacked == "yes"){
    echo "<font color='red'><h2>Email Header Injection Attempt Detected! &nbsp;Your IP Address has been logged, and will be reported shortly.</h2></font><br />";
    
    $todayis = date("l, F j, Y, g:i a");

    $subject = $subject;

    $subject2 = "EMAIL HEADER INJECTION ATTEMPT";

    $notes = stripcslashes($notes);

    $message = " $todayis \n
    EMAIL HEADER INJECTION ATTEMPT DETECTED from $visitor ($visitormail). \n
        IP Address = $ip \n
    Subject: $subject \n
    Message: $notes \n
    Browser Info: $httpagent \n";
    $from2 = "From: YOURNAME@YOURWEBSITE.COM\r\n";

    mail("YOURNAME@YOURWEBSITE.COM", $subject2, $message, $from2);
    }

if(!$visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
{
echo "<h2>The following error(s) were encountered:</h2>";
echo "<font color='red'>*Invalid email address. <br /></font>";
$passedTests = "no";
}
if(empty($visitor) || empty($visitormail) || empty($notes )) {
    if($passedTests == "yes"){
    echo "<h2>The following error(s) were encountered:</h2>";
    }
echo "<font color='red'>*Please fill in ALL of the required fields. <br /></font>";
$passedTests = "no";
}

$todayis = date("l, F j, Y, g:i a");

$subject = $subject;

$subject2 = "Feedback from YOURWEBSITE.COM";

$notes = stripcslashes($notes);

$message = " $todayis \n
From: $visitor ($visitormail)\n
Subject: $subject \n
Message: $notes \n
Additional Info : IP = $ip \n
Browser Info: $httpagent \n
";

$from = "From: $visitormail\r\n";

if($passedTests == "yes"){
mail("YOURNAME@YOURWEBSITE.COM", $subject2, $message, $from);
?>
<p align="center">
<h2>Thankyou for your feedback!</h2>
<center>

<br /><table border=0><tr><td>
Date: </td>
<td><?php echo $todayis ?></td></tr>
<tr><td>Name: </td>
<td><?php echo $visitor ?> ( <?php echo $visitormail ?> )</td></tr>
<tr><td>Subject: </td>
<td><?php echo $subject ?></td></tr>
<tr><td></td><td></td></tr>
<tr><td>Message: &nbsp;&nbsp;</td>
<td><?php $notesout = str_replace("\r", "<br/>", $notes);
echo $notesout; ?></td></tr></table></center>

</p>
<?php
}
else{
?>
<br /><form method="post" action="sendmail.php">

<?php
$ipi = getenv("REMOTE_ADDR");
$httprefi = getenv ("HTTP_REFERER");
$httpagenti = getenv ("HTTP_USER_AGENT");
?>

<input type="hidden" name="ip" value="<?php echo $ipi ?>" />
<input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
<input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
<center>
<table border=0<tbody><tr align=left><td>
<font color="red">*</font>Name: </td>
<td><input type="text" name="visitor" size="51" value="<?php echo $visitor ?>" /></td></tr>
<tr align=left><td><font color="red">*</font>Email: </td>
<td><input type="text" name="visitormail" size="51" value="<?php echo $visitormail ?>" /></td></tr>
<tr align=left><td>&nbsp;Subject: </td>
<td><input type="text" name="subject" size="51" value="<?php echo $subject ?>" /></td></tr>
<tr align=left><td><font color="red">*</font>Message: &nbsp;&nbsp;</td>
<td><textarea name="notes" rows="7" cols="50"><?php echo $notes ?></textarea></td>
<tr align=left><td></td><td align="center"><input type="submit" value="Send Mail" /></td></tr></tbody></table></center>
</form>
<?php
}

?>
<p>&nbsp;</p>
</td></tr></tbody></table></body></html>


Once again, Don't forget to change YOURNAME@YOURWEBSITE.COM to your actual email adderess.

If you have any other requests/suggestions I'd be happy to attempt to impliment them or help you do it yourself.

Reply

Tyssen
I'm using this one: http://www.surefirewebdesign.com/scripts/

It's not free though.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2
Recent Queries:-
  1. using sendmail.php for contact form - 435.91 hr back. (1)
Similar Topics

Keywords : php, contact, form

  1. Submitting A Form In Flex (follow Up Of Sm's Tut)
    (2)
  2. Design A Contact Form In Flex Part 3
    (2)
    Design A Contact Form In Flex Part 3 Hopefully you have able to get a grasp on my first tutorials
    on how to design a flex form and then be able to stylize it with CSS. So now on to set up your form
    to validate and of course being able to reset your form as well., and before we get to the actual
    coding I break down the tags that will be used in this tutorial and what their roles are. Of course,
    since my newbieness really starts here I try my best to explain these tags. The first tag I will
    cover for setting up the validation is the tag, and since I don't underst....
  3. Design A Contact Form In Flex Part 2
    (0)
    Design A Contact Form In Flex Part 2 I hope that you learn a little bit of the Flex format with my
    first tutorial because that was the easy stuff until you get to the actual programming such as
    ActionScript and any other languages. Of course, I think this is by far the easiest part of
    designing forms or applications and that is using CSS. I will like to point out that CSS in Flex is
    a enigma and I will tell you why, because CSS in flex acts like regular CSS in html however it is
    very limited in what you can use and yet CSS in Flex is very complex because of how you ca....
  4. About Posting Form
    (2)
    Hi i had just register for free account and just think that why it is so important to post form for
    free hosting....
  5. Text Size In "fill-in" Form Blanks
    How do you change the size of the text in the fill in form entry boxes (2)
    Thanks for all the help on my previous question about adding an address to a "Submit" button.
    I've also been able to add a "print page" button through the help from group members. I now have
    another question. I've created a form using the Input commands that ask for name, address,
    state, etc. My computer is set to use 12 point text on a 800 x 600 screen resolution. When I hit the
    print screen button, everything is printed out fine, but I would like the information that people
    will be entering into the various boxes to be of a larger or bolder style. The whole re....
  6. Design A Contact Form In Flex Part 1
    (0)
    Design a Flex Form Part 1 Well this is my first tutorial on Adobe Flex 3 which is a great program
    if you’re interested in designing applications for the web 2.0 era. Adobe flex is the way to
    go as it combines several different programming languages in order to make the most out of this
    program. This includes HTML, CSS, XML, PHP/MySQL, XML, ActionScript, Ruby on Rails and ASP and this
    is all possible by the use of MXML or Magic eXtensible Markup Language because it is a user
    interface markup language. My three part tutorials for this form include designing the f....
  7. Perl For Automated Web Form Search
    (1)
    Hi all, I'd like to write a script to automate a search in order to collect data from an online
    database. The database is an archive of newspaper articles. The search is for certain words/text. It
    is searchable via a form only. The rub is that only a small portion (a month) at a time is
    searchable. I need to search every day for 50 years or so. Manually, this would take a considerable
    amount of time. I'm thinking of using perl or ruby or something similar. I am an absolute
    beginner with scripting and haven't done much formal learning in the subject since a ....
  8. Vb 2008 Linking To Another Form..
    (0)
    if i want to link another form will i use this code or there is easier one? code : form2.show or
    hide : form2.hide is there another code to be used...? thanks....
  9. Application Form [approved]
    (2)
    PRESENT CREDITS : HOSTING CREDITS : 37.65 Forum Username : Dhruv Display Username: Dhruv Email
    Address:dhruvin_patel@hotmail.co.uk My request is for: HOSTING PACKAGE 1 Your Registered Domain
    Name or Desired Trap17 Subdomain Name: tutorial-linker.trap17.com Introduce Yourself: Your hobbies,
    interests, talents, etc. Let the forum know you better. • My name is Dhruvin. Hobbies: Girls, gaming
    and computers. I have no talents I'm just a all rounder can do everything if i like biggrin.gif
    .Live in United Kingdom. And am a student. Desired Hosting Account Username: 8....
  10. Gahhh This Isn't Going Well Please Help!
    It's a forgot password form in php! (12)
    CODE <? // database connection details stored here include "database.php"; ?>
    <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head>
    <title>Thanks!</title> </head> <body bgcolor="#ffffff"
    text="#000000"> <? $email=mysql_real_escape_string($email);
    $status = "OK"; $msg=""; //error_reporting(E_ERROR | E_PARSE |
    E_CORE_ERROR); if (!stristr($email,"@") OR !stristr(�....
  11. Help With Form Actions.
    (1)
    CODE <h1>Login</h1> <form action="" method="post">
    <table align="left" border="0" cellspacing="0"
    cellpadding="3">
    <tr><td>Username:</td><td><input type="text"
    name="user" maxlength="30"></td></tr>
    <tr><td>Password:</td><td><input type="password"
    name="pass" maxlength="30"></td></tr> <tr><td
    colspan="2" ....
  12. Registration Form?!
    Password Issue??? (6)
    How can I build the registration form with some additional function which is illustrated by attached
    file. When a user tries to type a password, that bar thing says neither it's strong nor weak, or
    medium. Just take a look at attachment....
  13. Html Form!
    Using MySQL?! (4)
    Hey, I need your help again! I need some good working tutorial how I can update my SQL through
    HTML form. I did use some tutorials online found with the help of google; but they do not work
    properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
    should be based on security and more things. It has to be done in proper way.......
  14. How To Make Form Nested In Internet Explorer ?
    Nested form in IE (2)
    I want to make a form nested in another form, it's run on Opera and FireFox but it's occur
    error in IE How can I make form f2 submit by using javscript ??? (I want to solve this
    problem because my website using Ajax upload....
  15. Contact.pl Confusion
    (0)
    Hi, i have some code in my html page which relates to my contact.pl file in my cgi-bin folder. It is
    a submit button that is supposed to email directly to me. I got some errors, then changed the
    permissions so the contact file could be executed by everyone. Now when i am on the "net" viewing my
    site (as if i was an outsider) i get an error and it wont send the email form. My server log error
    says "error file is writeable by everyone" what is this about? If i have to enable it to be
    executed why would it say this. (it still says this if only read /execute are checke....
  16. Form Not Returning Correct Email Address
    (5)
    I have just noticed another side effect of the recent server migration. On my web site I have a
    comment form. After filling in the form the user gets a confirmation email and I get an email to
    tell me someone filled in the form, and showing me the data that were filled in. First of all, I
    got all emails twice, but I think I managed to fix that in the PHP code. What is worse, though, the
    user still gets his/her confirmation and thank you email, but, instead of my email address, the
    From: field now gives an aaddress on the server my account is on, ie. the gamma server. D....
  17. Advanced Contact Forum
    (0)
    Okay so people that want a contact form in their website, but keep getting spammed my bots here is
    your solution. This script might be a little advanced, but it stops spammers. They way it stop
    spammers is that it has a box where you enter the numbers. I think it's called a captcha.
    CODE ###################### ##### contact.php #### ###################### <?php
    @session_start(); if(isset($_POST['submit'])) {
    if(($_POST['security_code'] ==
    $_SESSION['security_code']....
  18. Brand New Motherboard Form Factor Coming Out?
    a new form factor standard could be upon us (2)
    So it looks like the ATX form factor is going to to be replaced. The new form factor is called the
    BTX. BTX stands for Balanced Technology Extended. Newegg doesn't even carry them yet. The board
    is completly square, which simplifies intallation to the case. The BTX has all slotted connections
    (PCI, RAM, PCIe, etc.) aligned parallel to each other increasing airflow. Because eveything is
    inline, the BTX form factor has the ability for multiple PC componants to share a single fan (cross
    flow fans). All I know is I want it. On a side note, the 45nm Manufactoring Tech....
  19. Updating Php File Through A Web Form
    (5)
    Hello, i'm not sure if this can be done with php or not but what i need is a way to make an php
    file that have an html form on it and it will take the info you put in to that form and write it to
    an existing php file, for example: if i have the file news.php and the file news_update.php. if you
    went to news_update.php you would get an form with a text area for you to write a new addition for
    the news.php file and when you hit submit it will add what you typed in the form to the file
    news.php. If this is going to be a big code or a hard one to make but some one think....
  20. Choosing Colored Contact Lenses
    (1)
    What is the best eye color for asians with brown skins? i want my eyes to look vibrant and very
    catchy. I hope you can share some ideas or some experiences about contact lenses. I have pale brown
    to gray eyes and I am wearing green contact lenses this moment.....
  21. I Liked This Form Builder
    It also uses Ajax (4)
    www.wufoo.com The form builder is unbelievably easy to use. I made a form in like 20 seconds. The
    functionality is good ( though pros could probably make a better form that would suit them, this one
    is good for newbies. ) All you have to do is drag and drop some modules and your form is ready.
    Now for the cons : You are only allowed to make 3 forms and the limitation of 100 entries per form.
    So technically this is not completely free, but it is good if you need a cool looking
    form in a jiffy. Its ....
  22. Php Ftp Upload Form
    Adding User Directory to PHP Upload Form - Help (1)
    Alright I am trying to have a PHP FTP Upload Form that allows the user to create the directory
    folder for where they want to upload there files to. example: Main Directory: vainsoft.com There
    directory: vainsoft.com/modeling or vainsoft.com/photography But I dont want them to be able to
    upload things into the main directory, only sub-directories, is that possible with this coding that
    I have: //uses $_FILES global array //see manual for older PHP version info //This
    function will be used to get the extension from the filename function get_extension($fi....
  23. What Is A Computer Form Factor
    (1)
    As I began my hardware class in school I knew I was going to be learning some new stuff about a
    computer that I never really thought about besides the fact I use one. Hopefully what I talk about
    in this topic will help people get a better understanding of computer hardware, especially when
    might want to build one by scratch. The form factor is used to determine what power supply,
    computer cases and motherboards you can use when building a fully customized computer instead of
    getting one pre-built; such as Dell, Apple, Sony, and Alienware. There are 6 form factors (in....
  24. Have Diferences Of Performance Form Ps2 Full Console To Mini-ps2?
    (8)
    Hi. Please if anybody test a mini-ps2. Have diferences of performance form PS2 full console to
    mini-ps2? thanks.....
  25. How To Make A Search Form And Php Code?
    Can you help please? (10)
    I am looking to put a whole Bible on my site, don't worry about copyrights, I already have all
    that. It will be put into my site book by book. My problem? I need a form that will only search
    the /Bible part of my database. I need an html form, and then a php code that can be put into just
    ONE file but that will display a search page afterward. If you could help me out here, I would
    greatly appreciate it since I will need this in order for it to work. The goal is simple, have an
    html form, that will lead to a search of my entire inneed.mxweb.co.uk/bible database....
  26. Loop Through Form
    How do you do it? (8)
    In ASP you'd do this: CODE For Each Field in Request.Form So how do you do it in PHP? I
    want to loop through a form, check to see if it has a value and if so, append to a string to send as
    the body of my email.....
  27. Form To Php Mail. Attachment
    (14)
    i know there are a few topics talk about attachment problem, but i want to know if anyone could show
    me a basic code for attaching files like pictures with the message. I made a html form, and
    redirect the information to my mail.php file to process the information and send it to my email. I
    want to know what do i have to do to attach files like pictures. I tried to search on google, and
    the codes are so complicated (i'm an amateur at this). Would it be possilbe if you could show me
    the code and explain to me what it does and how i could customize it to fit my needs?....
  28. *** Click Here To Get Your Free Hosting ***
    Trap17 Free Web Hosting Request Form - FILL OUT THIS FORM (1)
    Welcome to Trap17 Free Web Hosting. Before you start, read the Trap17 Readme . NOTE:
    Trap17 is not like other forums where you can still survive without reading stickies. If you
    don't read the Trap17 sticky you will NOT UNDERSTAND how to get hosting. Please take a few
    minutes to do that now. Some more info: A NOTE TO NEW MEMBERS (those who haven't yet
    participated in our forums) Before you post an application, You must participate in our forum and
    collect "Hosting Credits". You earn "Hosting Credits" when you make a post. You should make good
    genui....
  29. Php Emailer/contact System
    An email or contact system for your site (20)
    Hello all, Here is an easy Emailer or Contact system that allows visitors or members of your site
    to email you just by filling out a form. So here is what you need to do to set it up. First open up
    a new page in your text editor and paste in the following code. CODE <?php $Name =
    $_POST['Name']; $Subject = $_POST['Subject'];
    $Email = $_POST['Email']; $Site =
    $_POST['Site']; $Message=$_POST['Message'];
    $align = $_POST[&#....
  30. Free Windowsxp Sp2 Cd From Microsoft
    just fill the request form and recive it (13)
    microsoft offer 100% free windows xp sp2. just go to this link
    http://www.microsoft.com/windowsxp/downloa...us/default.mspx and fill your address they will send
    you the cd to you. I just recive the cd yesterday. /biggrin.gif' border='0'
    style='vertical-align:middle' alt='biggrin.gif' /> I see new feature like directx 9c , WMP9 ,
    firewall , and the one I like is popup blocker! /wink.gif' border='0'
    style='vertical-align:middle' alt='wink.gif' /> PS. waiting for the cd about 1-2 week if you
    write an exact address.....

    1. Looking for php, contact, form

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for php, contact, form

*MORE FROM TRAP17.COM*
advertisement



Using A Php Contact Form - Please Help!



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE