Forgotten email submitted form help

I have a forgotten email form... when you type your email, it
goes to another php page that will query the db for that email and
send your forgotten email to that email address.
It may not be the best way, but I am learning and so far so
good.
However, what can I do based on my code below if that email
address is *not* in the database? Obviously it wont send an email,
but how can I incorporate that into my code below?
Also: I guess I should have a line on the second form read:
"Sorry no email found". But, how can I delegate where it displays
on the screen? Just general help here please, as I am learning a
lot so far! Thanks.
$email=$_POST['email'];
mysql_select_db($database_connectDB, $connectDB);
$query_Recordset1 = "SELECT `password` FROM `members` WHERE
`email` = '$email' LIMIT 0 , 30";
$Recordset1 = mysql_query($query_Recordset1, $connectDB) or
die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
$your_password = $row_Recordset1['password']
?>
<?php
// send e-mail to ...
$to=$email;
// Your subject
$subject="Forgotten Password!";
// From
$header="from: My Web Site";
// Your message
$messages= "Your password for login to our website has
arrived! \r\n";
$messages.="Your password is $your_password \r\n";
$messages.="Come back to login! See you there! \r\n";
// send email
mail($to,$subject,$messages,$header);
?>

On Thu, 8 Jan 2009 04:56:17 +0000 (UTC), "chris.cavage"
<[email protected]> wrote:
>thank you... That is working well.
Glad to hear it. You're welcome.
> Right now it displays nothing when the email is sent!
>
> I have a main content area on my page, that is where I
would like the info to
>appear...
There are a couple of different ways to handle something like
this. You
can have the form submit back to the same page that displays
the form. The
logic would be something like:
if($_SERVER['REQUEST_METHOD']=='POST){
// code here to look up the e-mail address and, if found send
the e-mail
// and either display a success message or a sorry not found
message
}else{
// put the form here
The second approach would be to build a second page that the
form submits
to. In that page, you would only need the code to look up the
e-mail and,
if found, send the message and display a success message. If
it's not
found, display the sorry message. It would be a complete
page, styled as
you want it. Just put the PHP where you want the success/fail
message to
display.
Gary

Similar Messages

  • Submitted Form Help Needed

    Hi there,
    I have created a form in Adobe LiveCycle Designer 7.0 so that clients can fill in their answers and send back. I included the Submit button, however when I did a trial run with the form, it returned in .xml format which wont open in Internet Explorer. Can anyone guide me on how I can have the submitted forms returned in PDF form or if I need to do something with Internet Explorer to be able to access the .xml docs?
    Thank you!
    Amy

    If you want to use the .xml file, open the original pdf and import the file in to it then save under another name.
    You CAN enable the file so that people using Reader can fill it out, save it then email the entire form back to you but there are limts to it's use. You can either send the form to 500 people and collect an unlimited amount of responses or you can send it to an unlimited amount of people and collect 500 responses. Anything over that amount will be in violation of your license.
    To enable the file in Acrobat, you would find the option under Advanced>Enable usage rights in Adobe Reader (at least that's the verbiage in Acrobat 8 Pro). I'm not sure exactly where that option is in LiveCycle Designer but it's probably similar.

  • I have forgotten my security question answers. I logged into manage your your apple ID and tried to reset my security questions. The prompt tells they will send and Email to reset . I never get the email. Any help?

    I have forgotten my security question answers. I have logged into manage your Apple ID. I have requested a email to change security question withe link provided. I never recieved a email. Any help?

    If the email hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (108274)

  • Change sender email for submitted Form emails

    I built a website for a client using Muse and the Form widget through Business Catalyst. However, now whenever the client gets emails from a submitted form, it says its coming from MY email. How do I change the sender so that they recognize that it's not a personal email from me, but rather a submitted website form. Hope that makes sense!

    UPDATE: I just figured it out after having posted this no less than 10 mins ago. Thanks community, your genius overflowed to me and helped me solve my own problem. For anyone who is curious, in the Business Catalyst Admin Console, Under the Site Manager tab in the menu, you simply click "System Email" and the "Set default from email."   I can't believe I missed that, and I call myself a professional. Hope it helps someone else!

  • Email with attachement as pdf of submitted form

    Hi all,
    Can anyone suggest me how to get an email as an acknowledge ment with the submiteed form as an pdf format.?
    I want to get an acknowledgement mail after submitting the form through the work space..
    and email should contain the submitted form as an attachment in a PDF format
    Please assist...
    Thank you

    You can add an email submit button in your form to achieve this.
    Check this - http://help.adobe.com/en_US/livecycle/9.0/designerHelp/index.htm?content=000323.html and http://help.adobe.com/en_US/livecycle/10.0/DesignerHelp/WS107c29ade9134a2c5324ea7712a81c8d a6b-8000.html
    Som more pointers which could help
    https://groups.google.com/forum/#!topic/livecycle/81OXCQfsNys
    http://livecycleapps.wordpress.com/2008/07/28/a-submit-button-that-will-send-an-entire-pdf /
    ~ Varun

  • Hi im having trouble with downloading an album off my computer. i have forgotten the security questions, but have already sent them to my email. could someone help me in how to get the answers?

    Hi im having trouble with downloading an album off my computer. i have forgotten the security questions, but have already sent them to my email. could someone help me in how to get the answers?

    Hello Carpets,
    Thanks for the question. You can reset your security questions with your rescue email address, as outlined with this article:
    Apple ID: All about Apple ID security questions
    http://support.apple.com/kb/HT5665
    If you do not see the option for resetting your questions with a rescue email address, see this excerpt:
    Note: The option to send an email to reset your security questions and answers will not be available if a rescue email address is not provided. You will need to contact iTunes Store support in order to do so.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Additional Information:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Thanks,
    Matt M.

  • Contact Form - Email forwarding from user submitted forms

    How can one have the user's submitted email address in the from dialog instead of the adobe user account email. My client would like to be able to use the reply button in there email client instead of starting a new email. At the moment all the submitted forms come from my adobe account and use my name instead of the user's name the submitted the form. This makes tracking submitted forms more difficult. Is there a solution available?
    Thanks,
    Graeme

    You can set the 'from' email address after you log in to your website admin.
    You can get there by clicking the 'manage' button in Muse, or pointing your browser to yoursite.businesscatalyst.com/admin
    Then click 'Site Manager', then 'System Emails', then 'Set Default 'From' Email'

  • Help: how to send emails from FORMS?

    Are there simple steps to send emails from FORMS?
    Thank you in advance.
    Jimmy

    I'm sure there are many ways to send emails from Forms. Personally I never had to do this, but I can imagine following ways.
    a) use UTL_SMTP-Package to send the email via your database
    b) use a Java-Call
    Peter

  • Email PDF Form and Sign Entire Submission - Can this lock the form and show the signature?

    Thanks to those who explained how to create a button that allows me to email a form as a PDF rather than XML. It helped me a great deal.
    Now I want to cause our time sheet adjustment form to be emailed from the employee to their supervisor, and have the form-data be read-only, and the employee signature to be obvious to the recipient.
    I've tried checking the Sign Submission check box in the Submit tab of the Button Object window, (where the mailto: tag has been entered.
    I clicked the "Settings..." button on the Submit tab and then, under the "Sign Data and Submit Settings" dialog box I selected "Sign Entire Submission". But this does not lock the data and the resulting PDF form once emailed, shows no sign of a signature.
    I also tried adding a signature field, and clicked on it to add a signature. But once the signature was added, the Button was disabled and I could not submit the form via the mailto: tag.
    Is there a way to signa form with a self-signed signature, and email the entire PDF such that the recipient can see the signature, and that the data are no longer editable?
    Wouldn't that just be ducky...?
    Thanks again,
    -David Bartholomew

    Thanks for your comment. I suppose I need to add a context to my intended usage to explain why I want what I described. I want the signature to be apparent so users can see that a submission was signed. These forms that I am considering will replace a paper form used internally within my organization, to request a time card change. They only need to be signed as a pro-forma requirement.
    If the electronic forms solution is approved by management, I will make a case that since the network is a closed intranet, there is little consequential likelihood that a fellow employee would forge another's time card change request. And since the new form would be submitted through email, there is a further validation that the email will identify the sender's email address. This proposed electronic submission method is certainly as valid as forms where users cut and paste an image of their signature in a document...
    The good news is that since I asked this question, I discovered the samples that came with LCD 8...
    An example can be found in the Live Cycle Interactive Purchase Order sample found at [installdir]\EN\Samples\Purchase Order\Interactive.
    The interactive Purchase Order sample shows how a collection of fields can be defined and then the signature applied only to the data in the collection. The email button is defined as not included in the collection. This way the signature field can be used, and once the document is signed, the email button remains enabled.
    The interactive purchase order sample also demonstrates how a drop down list can be populated by a JavaScript as well as some array handling syntax that I've been looking for.
    I recommend the samples to anyone who, like me, may not have been aware of their relevance.
    Thanks again, this forum is a great resource.
    -David

  • Apple asking me security questions that ive never set up and i can't purchase anything, and ive tried resetting them but i can't remember the password for my rescue email address, please help?

    Apple asking me security questions that ive never set up and i can't purchase anything, and ive tried resetting them but i can't remember the password for my rescue email address, please help?

    You need to either reset the rescue email address's password(check the site's help for instructions) or ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (99674)

  • I have an editable pdf made in Acrobat. Viewing it Adobe Reader Mobile (Android) and I can fill it fine. I want to be able to fill the form but it keeps autosaving. I just want to email the form and then it goes back to an unfilled form. How do i do that?

    I have an editable pdf made in Acrobat. Viewing it Adobe Reader Mobile (Android) and I can fill it fine. I want to be able to fill the form but it keeps autosaving. I just want to email the form and then it goes back to an unfilled form. How do i do that?

    Currently, Adobe Reader for Android does not provide an option to disable auto-save.
    In the Reader home screen (where your files are displayed), you can make a copy of the original PDF document, open the copy (instead of opening the original document), make changes to the copy.  Once you email the copy, you can delete it.
    For more information, please see Help > How To... > Copy, edit, delete, manage.
    Although it is not the most convenient way to accomplish the task, that's the only feasible workaround that is available in Adobe Reader for Android right now.

  • Email PDF form on Web server

    I have created a PDF form which resides on a Web server. Users follow a Webpage link and fill out the form on their desktop, where there is no email client installed. I noticed in the Script Editor that I can choose "Run at Server." Does this mean that when the user clicks Submit, this code will run on the server and email the form from there?
    this.resolveNode("#event").submit.target = "mailto:" + strToAddress + "?subject= " + "LOA request for " + strSuffix + " DSM " + strMgrFirstName + " " + strMgrLastName + " Store# " + strStoreNum + " Region# " + strRegionNum;
    Is that what "Run at Server" means? I looked in the LC Help and found no references to "Run at Server."

    If "Run at Server" isn't the simple solution to my problem (there is no client email application), then could I copy the javascript code on the Submit button and paste it into a.js file on the server and then in the Object properties of the button point to that .js file?
    form1.page3.emailSubform.emailToBtn::preSubmit:form - (JavaScript, server)
    app.execMenuItem("SaveAs");
    //either way below works
    //event.target.submitForm({cURL:"mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + strSubject + "&body=" + strMessage,cSubmitAs:"PDF",cCharset:"utf-8"});
    if (txtCCAddress.rawValue == null) {
    var strToAddress, strSubject, strMessage, strSuffix, strMgrFirstName, strMgrLastName, strStoreNum, strRegionNum
    strToAddress = txtToAddress.rawValue;
    strSuffix = form1.Page1.DropDownList1.rawValue;
    strMgrFirstName = form1.page3.MgrFirstName.rawValue;
    strMgrLastName = form1.page3.MgrLastName.rawValue;
    strStoreNum = form1.Page1.storeNumber.rawValue;
    strRegionNum = form1.page3.distRegion.rawValue;
    //something like this would go in the URL in Object properties for the button
    //formmail.php?emailTo=strToAddress&type=strSuffix&mgrFirst=strMgrFirstName&mgrLast=strMgr LastName&storeNum=strStoreNum&region=strRegionNum
    this.resolveNode("#event").submit.target = "mailto:" + strToAddress + "?subject= " + "LOA request for " + strSuffix + " DSM " + strMgrFirstName + " " + strMgrLastName + " Store# " + strStoreNum + " Region# " + strRegionNum;
        else
        var strToAddress, strCCAddress, strSubject, strMessage, strSuffix, strMgrFirstName, strMgrLastName, strStoreNum, strRegionNum
    strToAddress = txtToAddress.rawValue;
    strCCAddress = txtCCAddress.rawValue;
    strSuffix = form1.Page1.DropDownList1.rawValue;
    strMgrFirstName = form1.page3.MgrFirstName.rawValue;
    strMgrLastName = form1.page3.MgrLastName.rawValue;
    strStoreNum = form1.Page1.storeNumber.rawValue;
    strRegionNum = form1.page3.distRegion.rawValue;
        this.resolveNode("#event").submit.target = "mailto:"+ strToAddress + "?cc=" + strCCAddress + "&subject=" + "LOA request for "  + strSuffix + " DSM " + strMgrFirstName + " " + strMgrLastName + " Store# " + strStoreNum + " Region# " + strRegionNum;

  • I need to reset my security questions however there is no option to send a reset link to email address anyone help?

    I need to reset my security questions however there is no option to send a reset link to email address anyone help?

    Go to https://getsupport.apple.com ; click 'See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Forgotten Apple ID security questions'.

  • Do I gee a copy of submitted forms with the free account?

    Do I gee a copy of submitted forms with the free account?

    Hi;
    Using the Free account you can view the submitted data and export it to Excel, PDF or CSV (the data is in a table format).
    Email Notifications, where an email comes to you each time someone submits the form is a paid level feature.  Another Paid level feature is "Download Response as PDF" which allows you to save/download a PDF version of the filled out form that looks like the original.
    Thanks,
    Josh

  • Symbol error when submitting form

    experiencing a symbol error when submitting form.

    Hi Gen,
    Unfortunately, the error came from a client who was submitting a form via Mac OS.  He stated that when he attempted to submit he received a symbol error.
    On another note, I did experience issues with periods (.) within another form such as 2009.01 and 2011.25.  When I downloaded the files corresponding to the numbers, it wouldn’t allow me to save it with the period (used an underscore instead).
    Warmest regards,
    Delia
    Delia Boyd
    Program Manager, Standards Development
    Executive Office
    AOAC INTERNATIONAL
    481 N. Frederick Avenue, Suite 500
    Gaithersburg, MD 20877-2417
    301-924-7077 x126
    301-924-7089 - Fax
    [email protected]<mailto:[email protected]>
    www.aoac.org<http://www.aoac.org/>
    cid:[email protected]
    127th AOAC Annual Meeting & Exposition
    Palmer House Hilton
    Chicago, Illinois
    August 25-28, 2013
    For more information visit our website
    at: http://www.aoac.org/meetings1/127th_annual_mtg/main_2.htm
    þ Please consider the environment before printing this email.
    ...you will see it when you believe it!

Maybe you are looking for

  • Can I access two websites at the same time?

    Does Dreamweaver have the ability to open two websites at the same time? I basically have a CMS hosted on one server, that connects to my clients sites on other servers. I want to be able to open files on one server and edit them and also edit files

  • Return PDF page number from the name of the link in InDesign CS4 JS

    Hi, I need to return pdf page number of the linked file in InDesign.Here what I have so far, but my FilePath comes back undefined, and I am not sure if pageNmuber line would work:     var myArtBack = app.activeDocument.pages[1].rectangles[0].graphics

  • Error occuring when creating new folder.

    I am new to Robohelp and have been teaching myself the program to fix and upgrade my companies on line help system.  I believe the last time the help system was updated was 2009 and it was in Robohelp 8.   I have upgraded the program into Robohelp 11

  • How to correctly use Hide All/Show All in RH HTML review?

    When using the Hide All or Show All filter options seen in RH HTML's Review Pane it states that all "comments and changes are hidden or seen in Review Pane as well as in Design Editor."  I cannot see any change when I look at the inserted or deleted

  • Map not showing in places

    I'm using iphoto 09, and suddenly, no maps are showing up in places.   In the get info section of a photo, the location name still shows up, but there are no maps, no pins for the maps, etc.  Anyone have any idea?  The map area just shows up blank. T