473,397 Members | 1,985 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

PHP or HTML Question on Forms

Hello,
Sorry if this is posted in the wrong area.
I have an html file that has a contact form at the bottom.

I didn't write the html file, but it appears that I'm missing
something to actually receive the email. I know of several scripts
that are forms to email, but I'm not sure how to connect it to the
form..
Here is my code.

form action="">
<fieldset>
<fieldset><legend>Contact</legend<label for="name">Name:</label>
<input name="name" id="name" class="textbox" value="your name here"
size="30" type="text" /><br />

<label for="email">Email:</label<input name="email" id="email"
class="textbox" value="yo*******@wherever.com" size="30" type="text"
/><br />

<label for="comments">Comments:</label<textarea name="comments"
id="comments" class="textbox" rows="8" cols="30">Comments
here</textarea<br />

<input class="submitbutton" value="Send Mail;" type="submit" /><br
/>

</fieldset>

</fieldset>

</form>

Any help would be appreciated.

Thanks!
Aug 26 '06 #1
2 1633
John wrote:
Hello,
Sorry if this is posted in the wrong area.
I have an html file that has a contact form at the bottom.

I didn't write the html file, but it appears that I'm missing
something to actually receive the email. I know of several scripts
that are forms to email, but I'm not sure how to connect it to the
form..
Here is my code.

form action="">
<fieldset>
<fieldset><legend>Contact</legend<label for="name">Name:</label>
<input name="name" id="name" class="textbox" value="your name here"
size="30" type="text" /><br />

<label for="email">Email:</label<input name="email" id="email"
class="textbox" value="yo*******@wherever.com" size="30" type="text"
/><br />

<label for="comments">Comments:</label<textarea name="comments"
id="comments" class="textbox" rows="8" cols="30">Comments
here</textarea<br />

<input class="submitbutton" value="Send Mail;" type="submit" /><br
/>

</fieldset>

</fieldset>

</form>

Any help would be appreciated.

Thanks!
You need to have another page (or code in this page) to accept the
parameters, parse and validate them, then create the mail message and
send it to your MTA.

You can do this in PHP or any of a number of different scripting
languages. But if you don't watch it, your script can become a way for
spammers to send their mail - quickly getting you blacklisted and
possibly your hosting account canceled.

Much better to get a complete script to do the work. There are a number
of them available on the net.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Aug 26 '06 #2
GB2312
=================
FORM ÖеÄACTION
ûÓнÓÊÕÒ³Ãæ`£¬ËùÒÔÄãËùÌá½»µÄÐÅÏ¢ÎÞ·¨Ö´ÐÐ
Ð޸ģº
<form action="">
ÕâÀï""ÖÐÈç¹ûÊÇÁíÍâµÄÒ³Ãæ¾ÍÖ±½ÓÌîдURL

Èç¹ûÊǵ±Ç°Ò³Ãæ¾ÍÓÃÆäËûº¯Êý
<input class="submitbutton" value="Send Mail;" type="submit" />
ÕâÀïÒ²µÄÐ޸ģ¡¸øÄã¸öÀý×Ó°É£¡
E.G:
<form method="POST" action="">
ÄãÒªÕÒϺÃ×?:
<input name="file" size="20">
<input type="hidden" name="do" value="Go">
<input type="submit" value="TMDÈÃÎÒ¿´">
</form>
Õâ¸ö¾ÍÊÇÌá½»µ½Í¬Ò»Ò³ÃæµÄ
½ÓÊÕ²¿·Öº¯ÊýÊÇ:
if ($_POST['do'] == 'Go')
{
$file=$_POST["file"];
if(!file_exists($file))
{
die("<font color=red>ÎÒÊÇÖ»Öí,ÎÒÕÒ²»µ½Õâ¸öÎļþ!</font>");
}
highlight_file($file);
}
?>

====================
I'm Chinese! ^_^
MSN:cf***@hotmail.com
Aug 27 '06 #3

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

Similar topics

7
by: Bob Nolty | last post by:
Hi all -- I'm trying to create a hidden form in the document using only Javascript -- I don't know what form I want until the user clicks a button -- I tried the following code, which does...
4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
22
by: Luke | last post by:
Elements with name attribute: form, input, textarea, a, frame, iframe, button, select, map, meta, applet, object, param, img (if you know more reply...) Methods of addresing html elements:...
2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
6
by: William F. Zachmann | last post by:
We've got a project going that involves moving an old web site with a massive dll written in C++ that produces most of the output from a SQL 7.0 data base on NT4 onto IIS on Windows 2003 Server...
4
by: Sathyaish | last post by:
I am no JavaScript progammer, and unfortunately am having to babysit an old code base that has a lot of JavaScript in it. I have two questions: (1) Can two HTML controls have the same name? It...
5
by: nick | last post by:
I need to create a simple asp.net application that use password protect some html pages. The html page provider doesn't know asp.net. And the host doesn't allow me to create user accounts. ...
7
by: thersitz | last post by:
I can't seem to get my html form to submit properly from within a web form. Here's my form tag syntax and some delivery hidden fields. <form id="myForm"...
19
Atli
by: Atli | last post by:
Introduction At some point, all web developers will need to collect data from their users. In a dynamic web page, everything revolves around the users input, so knowing how to ask for and collect...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.