473,651 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send email when condition it met

I have a form that stores information in a table, but I also need it
to send an email when a specific question, among the many, is answered
with no

the question is a simple drop box:

<select name="safe_acce ss">
<option value="0"></option>
<option value="yes">Yes </option>
<option value="no">No</option>
</select>

and the javascript validation is:

//safe_access
if ( form.safe_acces s.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_acces s.focus();
return false;
}

how do I get it to send an email, and still store information in the
table when someone answers no?

I've done several searches, but they all keep bringing up how to email
the form instead of what I am looking for.

Thanks
Mar 18 '08 #1
5 2357
On Mar 18, 1:22 pm, "canaj...@gmail .com" <canaj...@gmail .comwrote:
I have a form that stores information in a table, but I also need it
to send an email when a specific question, among the many, is answered
with no

the question is a simple drop box:

<select name="safe_acce ss">
<option value="0"></option>
<option value="yes">Yes </option>
<option value="no">No</option>
</select>

and the javascript validation is:

//safe_access
if ( form.safe_acces s.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_acces s.focus();
return false;

}

how do I get it to send an email, and still store information in the
table when someone answers no?

I've done several searches, but they all keep bringing up how to email
the form instead of what I am looking for.

Thanks
Do you intend to store the data in the table AND send email via
javascript?
Or do you have some server-side script to do it for you?
Mar 18 '08 #2
On Mar 18, 9:31 am, GArlington <garling...@tis cali.co.ukwrote :
On Mar 18, 1:22 pm, "canaj...@gmail .com" <canaj...@gmail .comwrote:
I have a form that stores information in a table, but I also need it
to send an email when a specific question, among the many, is answered
with no
the question is a simple drop box:
<select name="safe_acce ss">
<option value="0"></option>
<option value="yes">Yes </option>
<option value="no">No</option>
</select>
and the javascript validation is:
//safe_access
if ( form.safe_acces s.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_acces s.focus();
return false;
}
how do I get it to send an email, and still store information in the
table when someone answers no?
I've done several searches, but they all keep bringing up how to email
the form instead of what I am looking for.
Thanks

Do you intend to store the data in the table AND send email via
javascript?
Or do you have some server-side script to do it for you?
right now the form action sends the information to a php script which
stores the information in the table:

<form action="thankyo u.php" method="post" name="form" id="form">
Mar 18 '08 #3
On Mar 18, 9:31 am, GArlington <garling...@tis cali.co.ukwrote :
On Mar 18, 1:22 pm, "canaj...@gmail .com" <canaj...@gmail .comwrote:
I have a form that stores information in a table, but I also need it
to send an email when a specific question, among the many, is answered
with no
the question is a simple drop box:
<select name="safe_acce ss">
<option value="0"></option>
<option value="yes">Yes </option>
<option value="no">No</option>
</select>
and the javascript validation is:
//safe_access
if ( form.safe_acces s.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_acces s.focus();
return false;
}
how do I get it to send an email, and still store information in the
table when someone answers no?
I've done several searches, but they all keep bringing up how to email
the form instead of what I am looking for.
Thanks

Do you intend to store the data in the table AND send email via
javascript?
Or do you have some server-side script to do it for you?
right now the form action sends the information to a php script which
stores the information in the table:

<form action="thankyo u.php" method="post" name="form" id="form">
Mar 18 '08 #4
On Mar 18, 1:51 pm, "canaj...@gmail .com" <canaj...@gmail .comwrote:
On Mar 18, 9:31 am, GArlington <garling...@tis cali.co.ukwrote :
On Mar 18, 1:22 pm, "canaj...@gmail .com" <canaj...@gmail .comwrote:
I have a form that stores information in a table, but I also need it
to send an email when a specific question, among the many, is answered
with no
the question is a simple drop box:
<select name="safe_acce ss">
<option value="0"></option>
<option value="yes">Yes </option>
<option value="no">No</option>
</select>
and the javascript validation is:
//safe_access
if ( form.safe_acces s.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_acces s.focus();
return false;
}
how do I get it to send an email, and still store information in the
table when someone answers no?
I've done several searches, but they all keep bringing up how to email
the form instead of what I am looking for.
Thanks
Do you intend to store the data in the table AND send email via
javascript?
Or do you have some server-side script to do it for you?

right now the form action sends the information to a php script which
stores the information in the table:

<form action="thankyo u.php" method="post" name="form" id="form">
This question that may be answered "yes" or "no", and you want to act
when the answer is "NO",
it is NOT to the tune of "Do you want to subscribe to our newsletter
(and other unsolicited mail)?"
Is it?
Mar 18 '08 #5
On Mar 18, 12:52 pm, GArlington <garling...@tis cali.co.ukwrote :
On Mar 18, 1:51 pm, "canaj...@gmail .com" <canaj...@gmail .comwrote:
On Mar 18, 9:31 am, GArlington <garling...@tis cali.co.ukwrote :
On Mar 18, 1:22 pm, "canaj...@gmail .com" <canaj...@gmail .comwrote:
I have a form that stores information in a table, but I also need it
to send an email when a specific question, among the many, is answered
with no
the question is a simple drop box:
<select name="safe_acce ss">
<option value="0"></option>
<option value="yes">Yes </option>
<option value="no">No</option>
</select>
and the javascript validation is:
//safe_access
if ( form.safe_acces s.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_acces s.focus();
return false;
}
how do I get it to send an email, and still store information in the
table when someone answers no?
I've done several searches, but they all keep bringing up how to email
the form instead of what I am looking for.
Thanks
Do you intend to store the data in the table AND send email via
javascript?
Or do you have some server-side script to do it for you?
right now the form action sends the information to a php script which
stores the information in the table:
<form action="thankyo u.php" method="post" name="form" id="form">

This question that may be answered "yes" or "no", and you want to act
when the answer is "NO",
it is NOT to the tune of "Do you want to subscribe to our newsletter
(and other unsolicited mail)?"
Is it?
the question is actually:

Is there safe access? (yes/no)

it's one of many questions, but if the answer to this one is no than
an email needs to be sent to another person alerting them of the
problem ASAP instead of waiting for them to look at all the answers at
a later time, the person filling out the form isn't asked for their
email
Mar 18 '08 #6

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

Similar topics

15
11059
by: news.microsoft.com | last post by:
HI, ASPEmail to send to multiple recipients? I tried to use comma and semicolon but all the time give this message error: Error: 6 - 501 Bad address syntax nor : email@dom,email@dom,email@dom or: email@dom;email@dom;email@dom
0
2262
by: JT | last post by:
Hi, I'm sure this isn't a hard one, can someone help? I'm adding a new record to a MySQL database every x seconds. I need to be able to inspect the content of a certain field in this incoming record and, when a condition is met, send an email. I suppose I could have some script inspect the latest record every x seconds and use sendmail, but I'm unfamiliar with scripting daemons on
1
1326
by: Danny | last post by:
Is there a way to send an email to myself from another pc yhat is running an access application if there error condition is triggered in the program? would be very handy Thanks
1
5026
by: mubarak basha | last post by:
hi, i wrote the following coding.......... <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Getting Server side data using AJAX</title> </head> <script>
9
77425
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
8
4487
by: SambhajiB | last post by:
Hi, I am using Access 2003 and .Net 2005. I have one problem in access query. I am trying to send the condtion of where clause through parameter to Access query as follows... PARAMETERS Text ( 255 ); SELECT *
0
1348
by: canajien | last post by:
I have a form that when submitted uses php to store the information in a table, but I also need it to send an email when a condition is met <select name="safe_access"> <option value="0"></option> <option value="yes">Yes</option> <option value="no">No</option> </select> if someone selects no as an option in the above drop box how do I get
36
8309
by: trixxnixon | last post by:
is it possible to have access generate an automatic email based on a condition? say for example, once a record reaches a particular age, have an email automatically populate and send to the email of the recipient.
0
5108
by: Xionbox | last post by:
Hello everybody, The error I have seems very easy to solve, but for some odd reason I can't seem to solve it. Anyways, here's my "setup". I created a server running on localhost:1200 (telnet localhost 1200 proves that it is up and running) and I coded a client which is supposed to connect to that server and send it data. The odd part is that the client connects to the server (via connect()) without any problem, but three lines later, it...
0
8349
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
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
8695
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
8460
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,...
0
7296
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5609
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
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
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
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.