473,663 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

php form help

Don't laugh lol I know your all php guru's : )

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/ju...rder_form.html
and has used javascript to validate the fields against spammers etc but
now I am looking to process it all in a php form using the mail
function.

Basically I want my form to gather all the information including check
boxes, drop down menu's and to email it to my client - simple enough
request but I don't know the code and cannot find a worth while
tutorial or php resource ( most out there are simple forms without
drops downs, etc )

Any help, suggestions, or recommendations ?

Much Appreciated netizens.
Liam

Nov 28 '06 #1
12 2234
On 28 Nov 2006 06:09:43 -0800, "liamo" <li**********@g mail.comwrote:
>Don't laugh lol I know your all php guru's : )

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/ju...rder_form.html
and has used javascript to validate the fields against spammers etc but
now I am looking to process it all in a php form using the mail
function.

Basically I want my form to gather all the information including check
boxes, drop down menu's and to email it to my client - simple enough
request but I don't know the code and cannot find a worth while
tutorial or php resource ( most out there are simple forms without
drops downs, etc )

Any help, suggestions, or recommendations ?

Much Appreciated netizens.
Liam
OK, I am not laughing but am somewhat amused, mostly because you have
a lot of learning ahead of you. ;-) I would imagine that there is a
time for learning and a time to finish a project and move on to the
next, so I offer a quick solution.

Primarily what you need to do is take all of those form vars and plug
them into the body of an email. Posting a form creates an array of
keys and values. Let's just return those to the email:

foreach ($_POST as $key=>$value) {
$bodyArr[] = "$key : $value";
}

$body = implode ("\n", $bodyArr);

mail ($to, $subject, $body, $headers);

So what I have done here is take every POST var, created an array of
values and keys, then added them to the body of the email with a
newline between each.

Of course, some of those vars you may not want to pass to the email,
so you can filter those out and capitalizing the keys would be nice:

$noSendArr = array ('submit');

foreach ($_POST as $key=>$value) {
if (!in_array ($key, $noSendArr) {
$bodyArr[] = ucwords($key)." : $value";
}
}

That should get you started. Good luck!
Nov 28 '06 #2
Message-ID: <11************ **********@j72g 2000cwa.googleg roups.comfrom
liamo contained the following:
>Basically I want my form to gather all the information including check
boxes, drop down menu's and to email it to my client - simple enough
request but I don't know the code and cannot find a worth while
tutorial or php resource ( most out there are simple forms without
drops downs, etc )

Any help, suggestions, or recommendations ?
You could use:
http://www.ckdog.co.uk/phmail

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Nov 28 '06 #3
<comp.lang.ph p>
<liamo>
<28 Nov 2006 06:09:43 -0800>
<11************ **********@j72g 2000cwa.googleg roups.com>
The form I created in HTML is located at
http://www.ebesign.co.nz/projects/ju...rder_form.html
and has used javascript to validate the fields against spammers etc but
now I am looking to process it all in a php form using the mail
function.
Very easy to do once you understand how forms work with php .
Basically I want my form to gather all the information including check
boxes, drop down menu's and to email it to my client - simple enough
request but I don't know the code and cannot find a worth while
tutorial or php resource ( most out there are simple forms without
drops downs, etc )

<html>
<head>

<title>form.php </title>

</head>

<body>

<table border="0" cellspacing="0" cellpadding="0" align="center">

<form action="form_su bmit.php" method="post">

<tr valign="top">
<td>Your Name:</td>
<td>&nbsp;&nbsp ;&nbsp;</td>
<td><input type="text" name="phil_one" size="65"></td>
</tr>

<tr valign="top">
<td>Comments: </td>
<td></td>
<td><textarea cols="65" rows="11" name="phil_two" ></textarea></td>
</tr>

<tr valign="top">
<td></td>
<td></td>
<td><input type="submit" name="Submit" value="SUBMIT"> </td>
</tr>

</form>

</table>

</body>
</html>

<html>
<head>

<title>form_sub mit.php</title>

</head>

<body>

<?php
$demo1=$_POST['phil_one'];
$demo2=$_POST['phil_two'];
?>

<table border="0" cellspacing="0" cellpadding="0" align="center">

<tr valign="top">
<td>The name you entered was:</td>
<td>&nbsp;&nbsp ;&nbsp;</td>
<td><?php print $demo1; ?></td>
</tr>

<tr>
<td>The comments you entered are:</td>
<td></td>
<td><?php print $demo2; ?></td>
</tr>

</table>

<?php

$ewho="we****** *@yourdomain.co m";

$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 .="NAME: " . "$demo1" . "\n\n";
$mailbody .="COMMENTS: " . "$demo2" . "\n\n";
$mailbody .="DATE: " . "$datesent" . "\n\n";
$mailbody .="IP: " . "$ip" . "\n\n";

$body .=stripslashes( $mailbody);

mail($ewho,$sub ject,$body,$mai lhead);

?>

</body>
</html>
Basically all you have to do is learn a bit more about forms and add
your new knowledge to the above .

Drop down box selections and tick boxes are passed in the same way to
the next page - so its really just a matter of giving them a name that
doesnt clash with "phil_one" or "phil_two" .

"phil_three "
"phil_four"

etc would work fine .
--
www.phpwhois.co.uk
Nov 28 '06 #4
<comp.lang.ph p>
<liamo>
<28 Nov 2006 06:09:43 -0800>
<11************ **********@j72g 2000cwa.googleg roups.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/ju...rder_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="we****** *@yourdomain.co m";

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.ph p</title>

</head>

<body>

<table border="0" cellspacing="0" cellpadding="0" align="center">

<form action="aform_s ubmit.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">Inter ior 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">Repla ce hinges
doors/cabinets</option>
<option value="Wardrobe rails">Wardrobe rails</option>
<option value="Heated towel rail bracket replacement">He ated towel rail
bracket replacement</option>
<option value="Hand rail, toilet roll holder installation">H and rail,
toilet roll holder installation</option>
<option value="Internal door installation">I nternal 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">Sh ower head replacement</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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="Retainin g">Retaining </option>
<option value="Gardenin g">Gardening </option>
<option value="Clean out gutters & repairs">Clean out gutters & repairs
</option>
<option value="Exterior house painting">Exter ior house painting</option>
<option value="Letterbo x replacement">Le tterbox replacement</option>
<option value="Replace washing lines">Replace washing lines</option>
<option value="Waterbla sting path/decks">Waterbla sting path/decks
</option>
<option value="Repair decking & steps">Repair decking & steps</option>
<option value="Lawn mowing">Lawn mowing</option>
<option value="Rubbish removal">Rubbis h removal</option>
<option value="Weather board repairs">Weathe r board repairs</option>
<option value="Weed Spraying">Weed Spraying</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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_su bmit.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=="che cked") {$marge5="TICKE D AND SELECTED";}

$marge6="Not Selected";
if ($homer06=="che cked") {$marge6="TICKE D AND SELECTED";}

$marge7="Not Selected";
if ($homer07=="che cked") {$marge7="TICKE D AND SELECTED";}

$marge8="Not Selected";
if ($homer08=="che cked") {$marge8="TICKE D 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="we****** *@yourdomain.co m";

$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,$sub ject,$body,$mai lhead);

?>

</body>
</html>

Nov 28 '06 #5
thank you all so much and krustov the whole form! wow thanks.

Now that gives me something to work on, i will probably look into forms
and try improve.

Krustov wrote:
<comp.lang.ph p>
<liamo>
<28 Nov 2006 06:09:43 -0800>
<11************ **********@j72g 2000cwa.googleg roups.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/ju...rder_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="we****** *@yourdomain.co m";

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.ph p</title>

</head>

<body>

<table border="0" cellspacing="0" cellpadding="0" align="center">

<form action="aform_s ubmit.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">Inter ior 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">Repla ce hinges
doors/cabinets</option>
<option value="Wardrobe rails">Wardrobe rails</option>
<option value="Heated towel rail bracket replacement">He ated towel rail
bracket replacement</option>
<option value="Hand rail, toilet roll holder installation">H and rail,
toilet roll holder installation</option>
<option value="Internal door installation">I nternal 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">Sh ower head replacement</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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="Retainin g">Retaining </option>
<option value="Gardenin g">Gardening </option>
<option value="Clean out gutters & repairs">Clean out gutters & repairs
</option>
<option value="Exterior house painting">Exter ior house painting</option>
<option value="Letterbo x replacement">Le tterbox replacement</option>
<option value="Replace washing lines">Replace washing lines</option>
<option value="Waterbla sting path/decks">Waterbla sting path/decks
</option>
<option value="Repair decking & steps">Repair decking & steps</option>
<option value="Lawn mowing">Lawn mowing</option>
<option value="Rubbish removal">Rubbis h removal</option>
<option value="Weather board repairs">Weathe r board repairs</option>
<option value="Weed Spraying">Weed Spraying</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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_su bmit.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=="che cked") {$marge5="TICKE D AND SELECTED";}

$marge6="Not Selected";
if ($homer06=="che cked") {$marge6="TICKE D AND SELECTED";}

$marge7="Not Selected";
if ($homer07=="che cked") {$marge7="TICKE D AND SELECTED";}

$marge8="Not Selected";
if ($homer08=="che cked") {$marge8="TICKE D 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="we****** *@yourdomain.co m";

$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,$sub ject,$body,$mai lhead);

?>

</body>
</html>
Nov 28 '06 #6
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.ph p>
<liamo>
<28 Nov 2006 06:09:43 -0800>
<11************ **********@j72g 2000cwa.googleg roups.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/ju...rder_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="we****** *@yourdomain.co m";

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.ph p</title>

</head>

<body>

<table border="0" cellspacing="0" cellpadding="0" align="center">

<form action="aform_s ubmit.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">Inter ior 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">Repla ce hinges
doors/cabinets</option>
<option value="Wardrobe rails">Wardrobe rails</option>
<option value="Heated towel rail bracket replacement">He ated towel rail
bracket replacement</option>
<option value="Hand rail, toilet roll holder installation">H and rail,
toilet roll holder installation</option>
<option value="Internal door installation">I nternal 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">Sh ower head replacement</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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="Retainin g">Retaining </option>
<option value="Gardenin g">Gardening </option>
<option value="Clean out gutters & repairs">Clean out gutters & repairs
</option>
<option value="Exterior house painting">Exter ior house painting</option>
<option value="Letterbo x replacement">Le tterbox replacement</option>
<option value="Replace washing lines">Replace washing lines</option>
<option value="Waterbla sting path/decks">Waterbla sting path/decks
</option>
<option value="Repair decking & steps">Repair decking & steps</option>
<option value="Lawn mowing">Lawn mowing</option>
<option value="Rubbish removal">Rubbis h removal</option>
<option value="Weather board repairs">Weathe r board repairs</option>
<option value="Weed Spraying">Weed Spraying</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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_su bmit.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=="che cked") {$marge5="TICKE D AND SELECTED";}

$marge6="Not Selected";
if ($homer06=="che cked") {$marge6="TICKE D AND SELECTED";}

$marge7="Not Selected";
if ($homer07=="che cked") {$marge7="TICKE D AND SELECTED";}

$marge8="Not Selected";
if ($homer08=="che cked") {$marge8="TICKE D 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="we****** *@yourdomain.co m";

$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,$sub ject,$body,$mai lhead);

?>

</body>
</html>
Nov 29 '06 #7
the form http://www.ebesign.co.nz/projects/ju...order_form.php
the thank you confirmation page
http://www.ebesign.co.nz/projects/ju...orm_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.ph p>
<liamo>
<28 Nov 2006 06:09:43 -0800>
<11************ **********@j72g 2000cwa.googleg roups.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/ju...rder_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="we****** *@yourdomain.co m";

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.ph p</title>

</head>

<body>

<table border="0" cellspacing="0" cellpadding="0" align="center">

<form action="aform_s ubmit.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">Inter ior 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">Repla ce hinges
doors/cabinets</option>
<option value="Wardrobe rails">Wardrobe rails</option>
<option value="Heated towel rail bracket replacement">He ated towel rail
bracket replacement</option>
<option value="Hand rail, toilet roll holder installation">H and rail,
toilet roll holder installation</option>
<option value="Internal door installation">I nternal 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">Sh ower head replacement</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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="Retainin g">Retaining </option>
<option value="Gardenin g">Gardening </option>
<option value="Clean out gutters & repairs">Clean out gutters & repairs
</option>
<option value="Exterior house painting">Exter ior house painting</option>
<option value="Letterbo x replacement">Le tterbox replacement</option>
<option value="Replace washing lines">Replace washing lines</option>
<option value="Waterbla sting path/decks">Waterbla sting path/decks
</option>
<option value="Repair decking & steps">Repair decking & steps</option>
<option value="Lawn mowing">Lawn mowing</option>
<option value="Rubbish removal">Rubbis h removal</option>
<option value="Weather board repairs">Weathe r board repairs</option>
<option value="Weed Spraying">Weed Spraying</option>
<option value="Dont Know">Dont Know</option>
<option value="None">No ne</option>
<option value="Other">O ther</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_su bmit.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=="che cked") {$marge5="TICKE D AND SELECTED";}

$marge6="Not Selected";
if ($homer06=="che cked") {$marge6="TICKE D AND SELECTED";}

$marge7="Not Selected";
if ($homer07=="che cked") {$marge7="TICKE D AND SELECTED";}

$marge8="Not Selected";
if ($homer08=="che cked") {$marge8="TICKE D 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="we****** *@yourdomain.co m";

$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,$sub ject,$body,$mai lhead);

?>

</body>
</html>
Nov 29 '06 #8
Message-ID: <11************ **********@80g2 000cwy.googlegr oups.comfrom
liamo contained the following:
>um small problem.

the form emails fine but results in no values like it does not state
the name and rest in the email..
My guess is that krusty has register globals on (which is why he didn't
spot his mistake) and you don't.
$mailbody .="Full Name: " . "$krusty_01 " . "\n\n";
This, and the others should be the $homer variables.

My script is better. :-P

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Nov 29 '06 #9
<comp.lang.ph p>
<Geoff Berrow>
<Wed, 29 Nov 2006 01:09:02 +0000>
<t1************ *************** *****@4ax.com>
$mailbody .="Full Name: " . "$krusty_01 " . "\n\n";

This, and the others should be the $homer variables.
Opps - guess i really should check stuff first :-)

$homer_** should be used instead of $krusty_**

$mailbody ="This email was sent via the website form" . "\n\n";
$mailbody .="DATE: " . "$datesent" . "\n\n";
$mailbody .="IP: " . "$ip" . "\n\n";
$mailbody .="Full Name: " . "$homer_01" . "\n\n";
$mailbody .="Email Address: " . "$homer_02" . "\n\n";
$mailbody .="Contact Number: " . "$homer_03" . "\n\n";
$mailbody .="Full Address (job location) : " . "$homer_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: " . "$homer_09" . "\n\n";
$mailbody .="Exterior Job: " . "$homer_10" . "\n\n";
$mailbody .="Job Description: " . "$homer_11" . "\n\n";

Although still unchecked the above should work .
--
www.phpwhois.co.uk
Nov 29 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6010
by: Randell D. | last post by:
HELP! I am determined to stick with this... I'm getting there... for those who haven't read my earlier posts, I'm createing what should be a simple function that I can call to check that required fields in a form have values. I'm writing the values to the client using document.write only so that I can confirm that the values are there to be played with - this is not the final result so please (unless it's leading to the script failure)...
4
2183
by: Tonya | last post by:
Hi, Does anyone have any example of how i can manage forms in my application?? I want to be able to reference my form instances that are currently open from other forms. why cant i open and close forms as easily as in VB6??
10
19342
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is able to fill that one out just fine. The second form is multipart/form-data. Unfortunately, I haven't been able to fill that out in a way that makes the server happy. I set up a copy of this form at my web site so that I could see exactly what a...
0
1971
by: Pat Patterson | last post by:
I'm having serious issues with a page I'm developing. I just need some simple help, and was hoping someone might be able to help me out in here. I have a form, that consists of 3 pages of fields. I'd like to create a page in which all of this is stored as you move along as hidden variables, until the end, when the user submits. I can't figure out one thing: I have dynamic form elements (dropdowns), that I'd like to use instead of...
25
10220
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the data in each record, which includes the ID of the father and the mother (who also have records in the table). One record per form. I have a Tab Control in the form, and in one of the tabs I have a subform (sfmSiblings) in which I wish to list...
4
1444
by: Dave Guenthner | last post by:
I have a csharp form1.cs created with VS. I have added a menu bar with one option called help. I then created another form in VS called help.cs. How can I launch the help form from the main form called form1. Seems simple. private void menuItem5_Click(object sender, System.EventArgs e) { // Menuitem5_Click is the help menu item user sees
10
6907
by: Kathy Burke | last post by:
HI. in asp.net app, I have an xmlDocument that I transform to the client html. Using xsl I create a few textboxes to capture user input. Each of these are related to <data> elements in the xmlDoc. I want to use the Forms collection to post the html form back to an asp.net page, and process each request.form object (textbox) via an xml node.value update. For any given xmlDocument there is an unknown number of items resulting in...
13
3931
by: Lee Newson | last post by:
Hi, I have just written my first application using VB.NET. The app works fine when i am running it within .NET for debugging purposes, however when i try to run the app from the .exe file that .NET creates i get the following error message: "An unhandled exception of type 'System.IO.FileNotFoundException' occurred in VisioTimeline.exe
9
12839
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How to do this... and eventually i want to modify the control box in the form of ? _ X ... I.e. adding a new button to control box. I need to detect the click events.
9
3871
by: MikeB | last post by:
Hi, I'd appreciate some help, please. I'm writing a VS2005 VB project for school and one of the requirements is that every screen should have a "Help" button. I could do it by writing a clumsy case statement like this: sub showHelp(byval frm as String) Select Case (frm) Case "Form1" dim help as new Form1
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8548
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2763
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.