GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 11-Sep-2009, 10:33
tonizek tonizek is offline
New Member
 
Join Date: Sep 2009
Posts: 1
tonizek is on a distinguished road

Data Collection form


I have being trying to create a customer data form which I can send with PHP mailer, but it giving some hard time, I don't no if you could be a good help
to me, if you require money I will pay.

Code:
User Name:............ Chose Password:.... Email Address:....... Confirm Email:....... Payment Name:..... Payment Date:....... Amount Paid:....... GSM Phone:......... Holiday Maker: ......... (e.g. BBT Plc, woodpic Plc, jonds Plc, UBA Plc) Deposit Teller No:....... Detail:.........

HTML Code:
<form name="form1" method="post" action="send_contact.php"> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <!--DWLayoutTable--> <tr> <td width="16%" height="28">Username</td> <td width="2%">:</td> <td width="300" valign="top"><input name="subject" type="text" id="subject" size="50"></td> <td width="218">&nbsp;</td> </tr> <tr> <td height="28">Password</td> <td>:</td> <td valign="top"><input name="password" type="text" id="password" size="50"></td> <td>&nbsp;</td> </tr> <tr> <td height="28">Contact Name</td> <td>:</td> <td valign="top"><input name="name" type="text" id="name" size="50"></td> <td>&nbsp;</td> </tr> <tr> <td height="28">Amount Paid</td> <td>:</td> <td valign="top"><input name="Paid_amount" type="text" id="Paid_amount" size="50"></td> <td>&nbsp;</td> </tr> <tr> <td height="28">Payment Date</td> <td>:</td> <td valign="top"><input name="payment_date" type="text" id="payment_date" size="23"> Example: dd/mm/yyyy </td> <td>&nbsp;</td> </tr> <tr> <td height="28">GSM Number</td> <td>:</td> <td valign="top"><input name="gsm_number" type="text" id="gsm_number" size="23" maxlength="14"> Example: 0802 897 0909 </td> <td>&nbsp;</td> </tr> <tr> <td height="28">Bank Name</td> <td>:</td> <td valign="top"><span class="style4"></span> <select name="bankname" id="bankname"> <option>UBA Plc</option> <option>Zenith Bank Plc</option> <option selected="selected">Skye bank Plc</option> <option>Diamond Bank Plc</option> <option>GTBank Plc</option> </select> <td>&nbsp;</td> </tr> <tr> <td height="28">Email Address</td> <td>:</td> <td valign="top"><input name="customer_mail" type="text" id="customer_mail" size="50"></td> <td>&nbsp;</td> </tr> <tr> <td height="73">Other Detail</td> <td>:</td> <td valign="top"><textarea name="detail" cols="47" rows="4" id="detail"></textarea></td> <td>&nbsp;</td> </tr> <tr> <td height="30">&nbsp;</td> <td>&nbsp;</td> <td valign="top"><input type="submit" name="Submit" value="Submit"> <input type="reset" name="Submit2" value="Reset"></td> <td>&nbsp;</td> </tr> </table> </form>

send_contact.php
-------------------------------------------------------

PHP Code:

<?php
// Contact subject
$subject ="$subject"; 
// Details
$message="The following data submitted:\n"
$Subject: "$subject"n
$password: "$password"n
$name: "$name"n
$paid_amount: "$paid_amount"n
$payment_date: "$payment_date"n
$gsm_number: "$gsm_number"n
$bankname: "$bankname"n
$detail: "$detail"nn Thank You;

// Mail of sender
$mail_from="$customer_mail"; 
// From 
$header="from: $name <$mail_from>";

// Enter your email address
$to ='developer@nijahost.com';

$send_contact=mail($to,$subject,$message,$header);

// Check, if message sent to your email 
// display message "We've recived your information"
if($send_contact){
echo "We've recived your contact information";
}
else {
echo "ERROR";
}
?>


The big thing is that am having a lot of problem with this, please I need some figure it out for me, I will appreciate.

thanks


Thank you
My Best regards,
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak when nothing is happening... How can I even debug this ? Algar MS Visual C++ / MFC Forum 10 19-Nov-2007 08:17
[Include] Doubly-linked List dsmith C Programming Language 6 14-Apr-2006 14:12
Strange C++ code memory leakage problem gaoanyu C++ Forum 7 04-Nov-2005 09:09
[GIM] Data Module - Contact dsmith C Programming Language 2 27-Jan-2005 17:30
[CONTEST?]Data Structure Test dsmith C Programming Language 2 06-Jun-2004 16:13

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:46.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.