Missing data recordset of the emails.

(David gave me help with this page a few days ago, and I thought that I've sorted, but still a problem. I reduced the offending code)

I've set up a page that presents data from a MYSQL dbase and then sends the information, as an email when there is an e-mail address of the recipient. He also sends an e-mail notification.
As you can see below the Recordset (restSelect) is selected by the receipt of a numeric variable posted since a previous page.
The page works insofar as the correct data are drawn from the dbase and presented on the Web page, but when emails are sent as messages arrive without the news of dbase.
I don't understand why e-mail messages are not collecting the data recordset. Can you see where I'm wrong, please?
(php written largely by DW2004)

Here is the code:

<? PHP require('.. /.. / Connections/tormented3.php');? >
<? PHP
$colname_restSelect = "1";
If (isset($_POST['org_pk'])) {}
$colname_restSelect = (get_magic_quotes_gpc())? $_POST ['org_pk']: addslashes($_POST['org_pk']);
}
@mysql_select_db ($database_tormented3, $tormented3);
$query_restSelect = sprintf ("SELECT * FROM cel_contents WHERE cel_pk = %s", $colname_restSelect);
$restSelect = mysql_query ($query_restSelect, $tormented3) or die (mysql_error ());
$row_restSelect = mysql_fetch_assoc ($restSelect);
$totalRows_restSelect = mysql_num_rows ($restSelect);

If (isset($_POST['send'])) {/ / 'submit' is the name of the submit button}
$error = ";

process and validate a field:
$email1 = trim($_POST['email1']);
if($email1 == '') {/ / if the name is blank, displays an error message (us and for required fields)}
$error. = ' < style p = "color: red;" > you missed your email address! < /p > '; error message
}

if($Error == '') {/ / If no error, the form process}

Mail script
$org = $row_restSelect ["cel_org"];
$tel = $row_restSelect ["cel_tel"];

$message = "Thank you for requesting information on the $org.\n\n." Configure the e-mail message to the customer.
$message. = "contact information: \n";
$message. = "Such no $tel \n";

$inform_me = "details of the $org have been sent to $email1; Set up the email informing me of the request for information.
E-mail:
If (mail ("$email1", $org, $message, "from: www.somewhere.org.uk") & & mail ("[email protected]", $org, ))
(($inform_me, "from: www.somewhere.org.uk"))
{
header ('location: http://www.somewhere.org.uk/feedback/email_redirect.php "") ;// Redirect to the page if the email has been sent successfully
"exit";
} else {}
$error == ' < style p = "color: red;" > an error has occurred, your email could not be sent. Please try
new / < p > ';
}
}
}
? >
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
" < html xmlns =" http://www.w3.org/1999/xhtml ">
< head >
< title > < /title > feedback form
< meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
< script type = "text/javascript" src = "fb.js" > < / script >
"" < link href = "... / css/mentalhealth_bx.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body class = "grey_bground" >

< form action = "<?" PHP echo $PHP_SELF;? ">" method = "post" name = "email1" id = "email1" >
<? PHP echo $error;? >
<!--appeal the processing routine-->
< div id = 'wrapper' > <! - this div code appears sometimes red in DW because there are closing 2/div (see below) - >
< table class = "whitecell" cellpadding = "1" >
< b >
< td colspan = "4" class = "cellcolour" > < p align = "center" class = "redhaed" > NB Ce e-mail form does not yet properly < /p >
< p align = "center" class = "strongbody" > use this form to send the information below on < span class = "redhaed" > <? PHP echo $row_restSelect ["cel_org"];? > < / span > for yourself or for someone else < br / >
by entering the relevant address in the space below. < br / >
< /p >
< table >
< /tr >
< b >
< td align = "right" > < p > < / p >
< p > < /p > < table >
< td colspan = "3" valign = "top" > <? PHP echo $org_pk; temporary control? > < table >
< /tr >
< b >
< td align = "right" > < span class = "right_cell" > information about < / span > < table >
< td colspan = "3" valign = "top" > <? PHP echo $row_restSelect ["cel_org"];? > of < table > www.somewhere.org.uk
< /tr >
< b >
< td colspan = "4" align = "right" > < table >
< /tr >
< b >
< td align = 'right' class = "right_cell" > Tel.no. < table >
< td > <? PHP echo $row_restSelect ["cel_tel"];? > < table >
< /tr >
< b >
< td valign = "top" class = "right_cell" > < table >
< td valign = "top" > < table >
< /tr >
< b >
< td colspan = "4" valign = "top" > < table >
< /tr >
< b >
< td align = 'right' class = "cellcolour" >
E-mail address of the recipient: < b > < br / >
< /b > < table >
< td > < input name = "email1" type = "text" size = "40" value = "" / > "
"< input name ="send"type ="submit"value =" send "/ >"
< table >
< /tr >
< b >
< td colspan = "2" > < div align = "right" > < / div > < table >
< /tr >
< /table >
< / div >
< / make >
< / body >
< / html >
<? PHP
mysql_free_result ($restSelect);
? >

Thank you very much for looking.
Steve

The problem is that $_POST ['org_pk'] comes from the previous page. $_POST and $_GET variables are sent only to the next page. They are not kept indefinitely. For example, when the form is submitted, $_POST ['org_pk'] no longer exists.

To work around this problem, add the following line somewhere inside your form:


It stores the value of $_POST ['org_pk'] in a hidden field and include in the array $_POST when sending the form.

Tags: Dreamweaver

Similar Questions

  • Missing data value on the export

    I use FDM v11.1.2.2, and I get an error during the export step. The message export shows that there is no value for the record. I put the data value for the location as < entity currency >, and I don't know why the dimension value is missing from the dat file that is produced. The adapter is FM11X-G6-A. I don't have any scripts in the application.

    Anyone seen this before?


    Range: 2, error: cell invalid for the period Jan.
    Actual; 2012; Jan; YTD; 2891_DIVN; FFS; [ICP no]; [None]; OM; LOAD;-182.49
    > > > > > >


    Error message in the error log
    * FdmFM11XG6A Runtime Error Log entry to start [2013-23 / 01/11: 54:06] *.
    -------------------------------------------------------------
    Error:
    Code of... 10002
    Description... Data loading errors.
    Process... clsHPDataManipulation.fDBLoad
    Component... C:\Oracle\Middleware\EPMSystem11R1\products\FinancialDataQuality\SharedComponents\FM11X-G6-A_1016\AdapterComponents\fdmFM11XG6A\fdmFM11XG6A.dll
    Version... 1116

    Identification:
    ... The user xxxxxxxx
    Name of the computer... XXXXXXXX

    Connection of FINANCIAL MANAGEMENT:
    Name of the application...
    Name of the cluster...
    Field...
    Connect status... Open connection

    Check the .dat itself and see if the value is there. There is a bug where the user HFM error log does not display the data value. The .dat should be printing If it is defined in the location. If it is printed in the .dat, the line can be an invalid intersection.

  • Hard drive partitioned using its missing data after restarting the system, sharing and management of the computer

    Hello

    I have a Toshiba Satellite with Vista and since my laptop came with only a single 250 GB, i.e. C:\ partition I tried to partition more than I did the following, I had about 90 GB of data to start with which I transferred to a portable hard drive then:

    Panel--> Admin Tools--> computer management--> management disk storage--> right click C:\ Drive and reduce volume--> it showed only 50 GB of space heat shrink and I created a new volume with this space (F:\ 50 GB)--> transferred all the files to the new 50 GB portable HD space F:\ and remaining 40 GB on the drive C:\

    When I started my computer after a few hours, the new partition F:\ was missing! In addition, there was only the C:\ drive of origin with 40 GB data that I had transferred + 45 GB of data I think it was there previously because the installed files.

    C:\ was so now 40 + 45 = 85 GB without a trace of the 50 GB of data on the new partition I created!

    I had recovered my system to a day before before I did it, it could be the reason? Now, when I try to go to System Recovery it does me not an option for a restoration of watch system.

    To be sure, I now have a backup of the 40 GB of data from the C: drive, but I lost the data of 50 GB of the new partition, and since I have not written new data on the drive is possible that it's still there?

    When I try to search for some files I know research shows me the name of the file, but the file does not open, and the location of the file shows that it is not accessible.

    Kindly advise me on what can be done given that 50 GB of data is really important.

    Thank you

    Go to disk management and open it in full screen and then press the PrtScr button.  Go to start / all programs / Accessories / Paint and open the program.  Go to Edition and click on paste.  Then go to file and click on save as and select a .jpg file type and call the disk management and save it to your desktop.

    Then go to http://skydrive.live.com/ (you will have to perhaps sign up and maybe download some programs, but this will give you a free online place where you can store files for others.  Once the page to the top, click on add files and navigate to the file you just save it on your desktop and add it to one of the folders (I suggest the Public folder).  Once it clicked, and information about it will appear at the bottom right, including where exactly the file.  Copy this URL and include it in your next post.  I would like to see what looks like disk management without asking a thousand questions to describe everythhing for me.

    If you did a restore of the system already on the previous day, there is probably no new restore points created since then, so there is no option to do a system restore.  In addition, a system restore would not solve this problem - this is way beyond its capabiliities.

    Download the free EASUS Partition Manager: http://www.partition-tool.com/ and run it to scan your drive and see if it finds anything Disk Manager can not - it "s possible he can pick up our lost F:\ partition or unidentified space which could be this partition but not correctly identified.  In a same, t I would like to see if it detects anything useful (and it can also be useful the fixing of the problem if we can find it).  Moreover, the total space of the C:\ drive is now is what it was before you have shrunk or it it showing the size reduction that you can expect if the new volume had actually been created?  Let me know what you find if anything.

    Right-click on your CD-ROM drive, and then click on change drive letter and paths.  Click on edit and then right click on the drop box for the available letters.  F shows as available or is missing in the list?  Leave it (don't change anything in reality - I just wanted to see if F has shown as available since if it was assigned (such as C: is assigned) should not be shown at the top on the list.)  I would like to know if he was there.

    I hope this helps or at least gives us some clues on how to solve the problem (whatever it is).   Keep me informed.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • debug the symbolic question missing date or in the future feature alpha #dev

    Hey please help

    I installed a debugging token in my alpha dev unit and added many examples of applications, all running well!

    but all of a sudden because of the connection with any other pc or something I don't know he said if poster devlpmnt than debug token mode is installed but its is not valid

    error is friendly date in debugging token is missing or in the future!

    Error No. East of 881

    Please help I tried new chips from the back to the top and also tried to re - register using new keys to the SJC!

    also removed debug token frm my camera but still the same error please help

    Hi, I also have just got my alpha dev and having the same problem and fixed it.
    There are two changes that I've made, so I do not know which set:
    1 change the date, clock and time zone in your alpha camera to adapt to your computer
    2 open the SDK software, choose the menu Run > Run configurations... > download tabs > Uninstall, then install...

    I think that the first solution will solve this problem, but if not then try the second solution

  • Query newbie problem: missing data function from the drop-down list

    I am a student with 10g express come with our manual. WinXp SP3 installation went perfectly and I can perform all necessary queries from the command line, no problem. The Publisher provides SQL scripts related to the topic of the chapter that creates users and data to the Chapter exercises. When I go to the home page of database and the attempt to run a query, I can change the alias, insert conditions and do something else with the record, but when I hit the drop down arrow to function there is nothing there, no list. I was back on the chapters dealing with installation thinking I missed some settings but I get empty. AY help would be appreciated.
    Kind regards

    Dave

    Function will be visible only if you open a session with the same user that you used when creating function - when you run the scripts provided by the Publisher.

  • Missing data when running the PC recovery

    Original title: Urgent!

    Computer illiterate, I am, when the recovery of the PC was on my screen, I thought I SHOULD provide answers to the questions that were in front of me, so with that, I changed the name of the computer, etc..  The computer went to do his thing, when finished, I went to connect & becomes quickly devastated.  Everything I knew she had changed!  All files, documents, photos, music, etc were more visible.  I don't want to use the word "gone", I hope I can get information to quickly resolve this nightmare.  So, how can I go back to the way my computer was before PC recovery questionnaire?  (I think now, after the damage is done, that I was not attentive & I could have, should have, accepted the information that was right in front of me & continuous) & No, I can't use "System Restore" that the computer has now to October ONLY.  When I click on the arrow for the previous month, it does nothing, everything continues to show "October 2012.  HELP ME PLEASE!  I recently transferred more photos on the computer, some of them for my daughters prom & I'm so hate myself right now.  More than usual.  Thank you for your time.

    Deena Landstrom

    If you have done what we could call a 'factory reset' and, like Richard, I suspect that you have. If you're lucky, a program called Recuva has been reported elsewhere on this forum as being useful to retrieve the data in these circumstances, but there is no guarantee a recovery of data, not even partially.

    As Richard says, also, the only other possibility is expensive professional data recovery services.

    Regardless of the route decide you, less you use the PC before any recovery attempt, more chances you will get something back.

    Tricky

  • where are found the emails in windows 8

    I had to return to print spooler, discount windows 8.  All personal data would be saved, the report says.  I use Microsoft Outlook for my email, and when I refresh windows 8 that he deleted outlook (as well as all my other apps) and when I reinstalled all of my emails have disappeared.  I got a lot of data stored in the emails.  Where can I find them?

    All things Outlook is stored in a PST file.

    Even though Outlook has disappeared, the PST file must have been saved by the updating procedure.

    Start a search for her. Also, if it's really important, you can keep a copy of it on an external...

  • Editing the Messages in the project file changes the original date of the email to the current-how date can I change this back?

    I often need to change the subject line in the emails received or sent previously. I do this by editing the drafts folder and then moving them to the storage in another folder. When I edit the original message the original message is replaced by the current date in e-mail header. This means that the message is now 'Out of Place' when I search on the Date. Screenshot attached.

    You might find it easier and have fewer side effects, if you change the object with one of these modules:

    https://addons.Mozilla.org/en-us/Thunderbird/addon/edit-email-subject/

    https://addons.Mozilla.org/en-us/Thunderbird/addon/header-Tools-Lite/

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • Tile bar missing e-mail message 'Write '. When I open a new email message to send, the tile bar disappeared. I have no way to send the email!

    Tile bar missing e-mail message 'Write '. When I open a new email message to send, the tile bar disappeared. I have no way to send the email! I believe that the bar of the tile is disabled, but I have no idea how to do to reactivate.

    Open a window of writing. If all the toolbars are missing, press the alt key to make the call of menu bar.
    The menu bar select View-Toolbars and rekindle the missing toolbars.

  • My incoming emails stopped displaying the date, it displays the time only.

    Also, my sent emails do not show the date. Just the time is displayed.

    If the e-mail received or sent has been done today the time will be displayed.

    E-mail messages that are older than today ' hui will indicate the date and time.

  • missing signature in the body of the email

    Hello

    I noticed that when I send an email directly from the xoom's standard e-mail client my signature is present in the body of the email, but when the "send email" to the option recipient is selected in the contacts application on the signature is missing.

    What could be causing this inconsistency and there at - it something I can do about it?

    Any suggestions will be greatly appreciated.

    XOOM stock with honeycomb 3.2

  • variable sharing, missing data, the timestamp even for two consecutively given

    Hello

    I have a problem with missing data when I read a published network shared variable.

    Host VI:

    In a host of VI on my laptop (HP with Windows XP Prof.) I write data to the shared Variable 'data '. Between two consecutively write operations is a minimum milliseconds of wait time. I use it because I want to make sure that the time stamp of each new value of data is different then a preview (variables shared the resolution is 1 ms)

    VI target:

    the VI target cRIO-9012 bed only of new data in the way that it compares the timestamp of a new value with the time stamp of the last value on a device in real time.

    Problem:

    rarely, I'm missing a data point (sometimes everything works fine for several hours, transfer thousands of data correctly above all of a sudden failure occurs). With a workaround, I'm able to catch the missing data. I discovered that the missing data have the timestamp exactly the same, then the last point of data read, is so ignored in my data 'legal '.

    To summarize, the missed value is written to the variable shared host, but ignores the target because its timestamp is wrong, respectively the same as the last value, despite the host waits for a minimum of 10 milliseconds each time before writing a new value.

    Note:

    The shared Variable is hosted on the laptop and configured using buffering.

    The example is simple only to display the function of principle, in real time, I also use a handshake and I guarantee that there is no sub - positive and negative.

    Simplified example:

    Question:

    Anyone has an idea why two consecutively data can have the same timestamp?

    Where timestamping (evil) Finally comes (System?)?

    What would be a possible solution (for the moment with shared Variables)?

    -> I tried to work around the problem with the clusters where each data gets a unique ID. It works but it is slower that comparing the timestamps and I could get performance problems.

    It would change anything when I animate the shared on the RT System Variable?

    Thanks for your help

    Concerning

    Reto

    This problem has been resolved in LabVIEW 2010.  You can see other bugs corrections in theReadme of LabVIEW 2010.

  • When sending emails to the bcc and access to a group, I hit the button send and dates back to the Inbox without sending.

    When sending emails to the bcc and access to a group, I hit the button send and dates back to the Inbox without sending. I even changed users on my pc and it always does.  I closed temporarily add-ons thinking that would help, but did not seem to make a difference.  Can I have a virus?

    Hello

    • E-mail are what customer you referring?

    If you use Windows live mail, then the number you posted is related to windows live and will be much better suited in Windows live forums. Click on the link below.

    Windows Live Solution Center

    http://www.windowslivehelp.com/

  • Why date on the email received in my Inbox is not the same as reading mail?

    original title: E-mail Internet Explorer

    When I get a grateful e-mail that was read, the date on the e-mail received in my Inbox is different is up-to-date. However, the e-mail message when it has been read is not the same. Why is it so?

    Thank you, Daisy

    Hello

    You must ensure that your computer's date and the person responding to your emails should have the correct date and time.
  • I had to reinstall XP Pro operating system. After installation do not play the HD ADECK. Tried to reinstall, but kept on getting vital missing data. Reinstall again.

    I am running XP Pro.  What respect should be reinstalled from the CD.   After the reinstallation, Harmon Kardon speakers do not work because HD ADECK cannot be properly installed.  Kept on getting vital missing data?

    Any suggestions?  Someone else's experiences loss of sound after a re - install?

    I guess you have formatted the HD?

    Therefore, you need to reinstall the relevant software for HD ADECK

    See here:

    http://www.Google.fr/search?q=HD+ADECK&ie=UTF-8&OE=UTF-8&AQ=t&RLS=org.Mozilla: en - GB:official & client = firefox-a

    Happy trawling,
    Jerry

Maybe you are looking for

  • change the homepage

    Is it possible to 'lock' the homepage so apps can not change? Sometimes I install new programs to evaluate them and they change my homepage. I'm using Firefox 3.6.12. Thank you!

  • Equium - cannot find all networks to connect

    Not very computer savvy so will try to explain the problem as best I can. I can connect to my internet connection via ethernet cable, but cannot connect wireless (although I have before). The wireless function is enabled and the orange light comes on

  • can not find the download link for the file Windows XP SP3

    Hi all! I just hugging old comp with Windows XP. He has XP SP2. I can't get Windows Update to work without SP3, but I can't find a download link for SP3. Where should I look? Thank you Jon Too bad. Finally found the file. For others who need it, here

  • Whenever I disconnect the computer a box comes up saying "" you sent emails in your Outbox you want to send ".

    * Original title: see under detailsbelow whenever I disconnect the computer a box comes up saying "you sent emails in your Outbox you want to send" I always click Yes although I already clicked on send at the time writing e-mail. "." How can I remove

  • ICT Agent OS Desktop and IP phone connection...

    Hi all Is it possible to use the connection IP phone or something similar to log agents in groups of skills via the handset if/when the Office CTIOS Toolkit isn't available? (Computer problems etc...) We use the IPCC Enterprise 7.1 (4). Thank you