473,395 Members | 1,956 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,395 software developers and data experts.

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_access">
<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_access.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_access.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 2333
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_access">
<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_access.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_access.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...@tiscali.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_access">
<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_access.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_access.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="thankyou.php" method="post" name="form" id="form">
Mar 18 '08 #3
On Mar 18, 9:31 am, GArlington <garling...@tiscali.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_access">
<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_access.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_access.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="thankyou.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...@tiscali.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_access">
<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_access.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_access.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="thankyou.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...@tiscali.co.ukwrote:
On Mar 18, 1:51 pm, "canaj...@gmail.com" <canaj...@gmail.comwrote:
On Mar 18, 9:31 am, GArlington <garling...@tiscali.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_access">
<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_access.selectedIndex == 0 ){
alert ( "Please select whether or not there is safe access to the
beach." );
form.safe_access.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="thankyou.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
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 :...
0
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...
1
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
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...
9
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
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 ...
0
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...
36
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.