You are here: Re: php form help « PHP Programming Language « IT news, forums, messages
Re: php form help

Posted by liamo on 11/29/06 00:54

the form http://www.ebesign.co.nz/projects/justfixit/job_order_form.php
the thank you confirmation page
http://www.ebesign.co.nz/projects/justfixit/aform_submit.php
the email it sends me
http://www.ebesign.co.nz/projects/justfixit/email.jpg


liamo wrote:
> um small problem.
>
> the form emails fine but results in no values like it does not state
> the name and rest in the email..
>
> "This email was sent via the website form
>
> DATE: Wednesday 29th of November 2006 01:22 PM
>
> IP: 202.74.217.170
>
> Full Name:
>
> Email Address:
>
> Contact Number:
>
> Full Address (job location) :
>
> Interior {box):
>
> Exterior {box):
>
> Both {box):
>
> Dont Know {box):
>
> Interior Job:
>
> Exterior Job:
>
> Job Description:
>
>
> Krustov wrote:
> > <comp.lang.php>
> > <liamo>
> > <28 Nov 2006 06:09:43 -0800>
> > <1164722983.022356.161810@j72g2000cwa.googlegroups.com>
> >
> > > Ok, so I have little if any knowledge with the programming language php
> > > - only having created small enquiry forms. Now I have a client that
> > > needs a job order form with a little more function than having solely
> > > contact details and a big enquiry text area.
> > >
> > > The form I created in HTML is located at
> > > http://www.ebesign.co.nz/projects/justfixit/job_order_form.html
> > >
> >
> > Ahhh what the hell i wrote the form for you as there isnt a lot on tv
> > tonight and because writing the full thing really annoys some people on
> > this newsgroup - so its your lucky day dude .
> >
> > $ewho="webmaster@yourdomain.com";
> >
> > The email address on the 2nd page is the only thing you need to edit in
> > order to test the form / script .
> >
> >
> >
> >
> >
> > <html>
> > <head>
> >
> > <title>aform.php</title>
> >
> > </head>
> >
> > <body>
> >
> > <table border="0" cellspacing="0" cellpadding="0" align="center">
> >
> > <form action="aform_submit.php" method="post">
> >
> > <tr valign="top">
> > <td>Your Full Name :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><input type="text" name="krusty_01" size="65"></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Your Email Address :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><input type="text" name="krusty_02" size="65"></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Your Contact Number :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><input type="text" name="krusty_03" size="65"></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Your Full Address : (job location)</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><textarea cols="50" rows="5" name="krusty_04"></textarea></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Job Type :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td>
> > <input type="checkbox" name="krusty_05" value="checked"> Interior &nbsp;
> > <input type="checkbox" name="krusty_06" value="checked"> Exterior &nbsp;
> > <input type="checkbox" name="krusty_07" value="checked"> Both &nbsp;
> > <input type="checkbox" name="krusty_08" value="checked"> Dont Know
> > </td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Interior Job :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td>
> > <select name="krusty_09">
> > <option value="Please Select ....." selected>Please Select .....
> > </option>
> > <option value="Leaking taps">Leaking taps</option>
> > <option value="Broken window catches">Broken window catches</option>
> > <option value="Jamming doors">Jamming doors</option>
> > <option value="Security stays">Security stays</option>
> > <option value="Door handles">Door handles</option>
> > <option value="Install door stops">Install door stops</option>
> > <option value="Interior house painting">Interior house painting</option>
> > <option value="Gib board repairs">Gib board repairs</option>
> > <option value="Gib board repairs">Gib board repairs</option>
> > <option value="Install curtain rails">Install curtain rails</option>
> > <option value="Tiling">Tiling</option>
> > <option value="Ranch slider bearings">Ranch slider bearings</option>
> > <option value="Replace hinges doors/cabinets">Replace hinges
> > doors/cabinets</option>
> > <option value="Wardrobe rails">Wardrobe rails</option>
> > <option value="Heated towel rail bracket replacement">Heated towel rail
> > bracket replacement</option>
> > <option value="Hand rail, toilet roll holder installation">Hand rail,
> > toilet roll holder installation</option>
> > <option value="Internal door installation">Internal door installation
> > </option>
> > <option value="Replace bathroom vanity">Replace bathroom vanity</option>
> > <option value="Remove broken light bulbs from sockets">Remove broken
> > light bulbs from sockets</option>
> > <option value="Shower door seals">Shower door seals</option>
> > <option value="Shower head replacement">Shower head replacement</option>
> > <option value="Dont Know">Dont Know</option>
> > <option value="None">None</option>
> > <option value="Other">Other</option>
> > </select>
> > </td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Exterior Job :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td>
> > <select name="krusty_10">
> > <option value="Please Select ....." selected>Please Select .....
> > </option>
> > <option value="Fencing">Fencing</option>
> > <option value="Retaining">Retaining</option>
> > <option value="Gardening">Gardening</option>
> > <option value="Clean out gutters & repairs">Clean out gutters & repairs
> > </option>
> > <option value="Exterior house painting">Exterior house painting</option>
> > <option value="Letterbox replacement">Letterbox replacement</option>
> > <option value="Replace washing lines">Replace washing lines</option>
> > <option value="Waterblasting path/decks">Waterblasting path/decks
> > </option>
> > <option value="Repair decking & steps">Repair decking & steps</option>
> > <option value="Lawn mowing">Lawn mowing</option>
> > <option value="Rubbish removal">Rubbish removal</option>
> > <option value="Weather board repairs">Weather board repairs</option>
> > <option value="Weed Spraying">Weed Spraying</option>
> > <option value="Dont Know">Dont Know</option>
> > <option value="None">None</option>
> > <option value="Other">Other</option>
> > </select>
> > </td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Job Description :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><textarea cols="50" rows="9" name="krusty_11"></textarea></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td><input type="submit" name="Submit" value="SUBMIT"></td>
> > </tr>
> >
> > </form>
> >
> > </table>
> >
> > </body>
> > </html>
> >
> >
> >
> >
> >
> >
> >
> >
> > <html>
> > <head>
> >
> > <title>aform_submit.php</title>
> >
> > </head>
> >
> > <body>
> >
> > <?php
> > $homer01=$_POST['krusty_01'];
> > $homer02=$_POST['krusty_02'];
> > $homer03=$_POST['krusty_03'];
> > $homer04=$_POST['krusty_04'];
> > $homer05=$_POST['krusty_05'];
> > $homer06=$_POST['krusty_06'];
> > $homer07=$_POST['krusty_07'];
> > $homer08=$_POST['krusty_08'];
> > $homer09=$_POST['krusty_09'];
> > $homer10=$_POST['krusty_10'];
> > $homer11=$_POST['krusty_11'];
> > ?>
> >
> > <?php
> >
> > $marge5="Not Selected";
> > if ($homer05=="checked") {$marge5="TICKED AND SELECTED";}
> >
> > $marge6="Not Selected";
> > if ($homer06=="checked") {$marge6="TICKED AND SELECTED";}
> >
> > $marge7="Not Selected";
> > if ($homer07=="checked") {$marge7="TICKED AND SELECTED";}
> >
> > $marge8="Not Selected";
> > if ($homer08=="checked") {$marge8="TICKED AND SELECTED";}
> >
> > ?>
> >
> > <table border="0" cellspacing="0" cellpadding="0" align="center">
> >
> > <tr valign="top">
> > <td>Your Full Name :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $homer01; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Your Email Address :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $homer02; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Your Contact Number :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $homer03; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Your Full Address : (job location)</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $homer04; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Interior</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $marge5; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Exterior</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $marge6; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Both</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $marge7; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Dont Know</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $marge8; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Interior Job :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $homer09; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Exterior Job :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $homer10; ?></td>
> > </tr>
> >
> > <tr><td><br></td></tr>
> >
> > <tr valign="top">
> > <td>Job Description :</td>
> > </tr>
> >
> > <tr valign="top">
> > <td><?php print $homer11; ?></td>
> > </tr>
> >
> > </table>
> >
> > <?php
> >
> > $ewho="webmaster@yourdomain.com";
> >
> > $datesent=date("l dS of F Y h:i A");
> >
> > $ip=$_SERVER['REMOTE_ADDR'];
> >
> > $subject="FROM THE WEBSITE FORM";
> >
> > $mailhead="From: $ewho \n";
> >
> > $mailbody ="This email was sent via the website form" . "\n\n";
> > $mailbody .="DATE: " . "$datesent" . "\n\n";
> > $mailbody .="IP: " . "$ip" . "\n\n";
> > $mailbody .="Full Name: " . "$krusty_01" . "\n\n";
> > $mailbody .="Email Address: " . "$krusty_02" . "\n\n";
> > $mailbody .="Contact Number: " . "$krusty_03" . "\n\n";
> > $mailbody .="Full Address (job location) : " . "$krusty_04" . "\n\n";
> > $mailbody .="Interior {box): " . "$marge5" . "\n\n";
> > $mailbody .="Exterior {box): " . "$marge6" . "\n\n";
> > $mailbody .="Both {box): " . "$marge7" . "\n\n";
> > $mailbody .="Dont Know {box): " . "$marge8" . "\n\n";
> > $mailbody .="Interior Job: " . "$krusty_09" . "\n\n";
> > $mailbody .="Exterior Job: " . "$krusty_10" . "\n\n";
> > $mailbody .="Job Description: " . "$krusty_11" . "\n\n";
> >
> > $body .=stripslashes($mailbody);
> >
> > mail($ewho,$subject,$body,$mailhead);
> >
> > ?>
> >
> > </body>
> > </html>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация