CDOSYS  sending Form Data

I have tried every combination of trying to get form data
sent in an email without any luck.
objMail.txtEmail = Request.Form("Email")
or
objMail.txtEmail = Request("Email")
If I take out the form elements I can get the system to send
me a hardcoded email
Can ANYONE tell me how to add a form variable into an email
using CDOSYS.
I am trying to use this as part of an insert, for members who
add thier details to our database I want to be able to send an
email to someone to be aware who has just been added.
I rely need an answer to this...I have to get this up and
running tomorrow
When answering, can you advise were abouts in the script
elements should be placed.
ANY help would be appreciated

i have had luck with this email code
place before your insert record coding
<%
Dim ObjSendMail
Set ObjSendMail = CreateObject("CDO.Message")
'This section provides the configuration information for the
remote SMTP server.
ObjSendMail.Configuration.Fields.Item ("
http://schemas.microsoft.com/cdo/configuration/smtpserver")
="127.0.0.1"
ObjSendMail.Configuration.Fields.Item ("
http://schemas.microsoft.com/cdo/configuration/smtpserverport")
= 25
ObjSendMail.Configuration.Fields.Item ("
http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout")
= 60
ObjSendMail.Configuration.Fields.Update
'End remote SMTP server configuration section==
if Request.Form("Submit1") = "Send Form" then
ObjSendMail.To = Request.Form("textfield")
ObjSendMail.CC = "[email protected]"
ObjSendMail.BCC = "[email protected]"
ObjSendMail.Subject = "RE:golf tournament entry form is
attached"
ObjSendMail.From = "[email protected]"
' we are sending a text email.. simply switch the comments
around to send an html email instead
'ObjSendMail.HTMLBody = Request.Form("textfield")
ObjSendMail.TextBody = ObjSendMail.TextBody &
cStr(Request.Form("textfield"))
ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
vbCrlf & ""
ObjSendMail.TextBody = ObjSendMail.TextBody & "Thank you
for entering this years Panhandle Charitable Open"
ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
vbCrlf & ""
ObjSendMail.TextBody = ObjSendMail.TextBody & "Entry form
is attached"
ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
vbCrlf & ""
ObjSendMail.TextBody = ObjSendMail.TextBody & "Please
print form, fill out and mail in with your entry fee"
ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
vbCrlf & ""
ObjSendMail.TextBody = ObjSendMail.TextBody & "" &
vbCrlf & ""
ObjSendMail.AddAttachment Server.MapPath("/entryform.doc")
ObjSendMail.Send
Set ObjSendMail = Nothing
end if
%>

Similar Messages

  • Send Form Data to PC via USB cabile

    Respected SIr/Madam
    I want to send Form Data or RMS Data to PC via USB data cabile .
    Is it Possible ?
    if it is possible then please give me some idea how to make it
    thanks in advanse
    Souvik

    Yes ..
    First ensure that driver for the Data cable is installed.
    Get the comm port number .
    In windows
    control panel->Phone & Modem options ->Modems..
    The Comm port no for the data cable is present in Attached To column.
    In Linux ..
    you can get it by checking the Device options
    Next
    U need to establish a connection between PC & Handset using the comm port.
    Note that The comm port obtained here is the reference commport in the PC..
    U can get the comm port number in Handset using the J2ME application itself..
    String port;
    String ports = System.getProperty("microedition.commports");
    int comma = ports.indexOf(',');
    if (comma > 0) {
    // Parse the first port from the available ports list.
    port = ports.substring(0, comma);
    } else {
    // Only one serial port available.
    port =ports;
    /*Below is a code example showing how you can use serial I/O API to open a connection and read/write
    to it. */
    //using commconnection since midp2.0
    CommConnection commConn =
    (CommConnection)Connector.open("comm:COM0;baudrate=115200", Connector.READ_WRITE,
    true);
    InputStream iStream = commConn.openInputStream();
    OutputStream oStream = commConn.openOutputStream();
    String sMessage = "send";
    oStream.write(sMessage.getBytes());
    Thread tRead = new Thread() {
    public void run() {
    while (true) {
    StringBuffer sb = new StringBuffer();
    while(true) {
    int c = iStream.read();
    if(c != '\r') {
    sb.append((char)c);
    else
    break;
    try {
    sleep(1000);
    catch (InterruptedException e) {}
    tRead.start();For some handsets that do not support CommConnection, you can use StreamConnection in place of
    CommConnection with the same result:
    StreamConnection commConn =
    (StreamConnection)Connector.open("comm:COM0";baudrate=115200"); The above code is for J2me application running on Handset ...
    In PC you can refer it using the comm port identified from the Control Panel.

  • Send form data from Coldfusion to ASP

    I need to send form data from CF to ASP.
    I submit a CF page and validate it on my end with another CF
    page, which then needs to post the results to an asp page on
    another site. The post has to be sent via SSL and I don't need to
    and cannot receive any status message back from the remote ASP
    site. Any suggestions would be greatly appreciated. I was thinking
    some type of cfhttp, but I am not very familiar with its usage.
    Thanks!

    It doesn't matter what type of page you are sending to as
    long as it can handle the data that is sent. Either a form or
    cfhttp will work.

  • Send form. data from standalone pdf to LC Forms

    Hello,
    I am new in Adobe LC ES platform and would like to ask for advice with following.
    I need to provide user with a standalone pdf form, user should then be able to fill the form and send it to LiveCycle Forms server.
    I originally thought that easiest way to implement it is via SOAP, but I have not been able to make some working HelloWorld example. I have red some articles that suggests some workarounds (pdf form -> webserver -> SOAP to LC server; or to use coldFusion).
    Is there any tutorial or example which would describe posting of form to LiveCycle forms, when not using LC Workspace (not over mail or watched folders) ? Or what way would you suggest to deal with this ?
    Do I need reader-enable form to make SOAP call to store form data by Reader?
    Thanks.

    It looks, that using web services may be after all most suitable for task needs.
    Perhaps last problem I have is to properly bind pdf form  to a process variable.
    I need to send pdf form to some livecycle process, which would store form entries to database. I am trying it in this way:
    - as a process start poin is defined [Set Value] service with execute action.
    - there is defined input, process, required variable "form" of type xfaForm with associated template-url pointing to mentioned .pdf form
    - in [Set Value] service it is only asserted some parts of "form" variable to another process variables
    tests:
    If I run process via wokbench (right-click on swim line + ivoke process), it returns job-id and values are stored in db (internal adobe table created for this process). But if I send (soaps) directly the pdf form and sniff the response packet, there is :
    <faultstring>
    The input BLOB object should have attachmentID, remoteURL, or binaryData field specified.
    </faultstring>
    ... and nothing is stored to db.
    Am I doing wrong mapping (wrong variable type? wrong assertion? ) or is this way bad completely.
    I have searched some article about the process side of WS binding, but haven't found nothing for LC 8.2.
    Thanks for advice.

  • Send form data via email after posting to MySQL database

    I have created a form in DreamweaverMX 2004 and then tied it to mySQL database so that on submit the data posts to the database.
    This works fine. It also goes to a "success" page just fine. I then added in some php code to also email a few of the fields from the form to a specific email address. This functions correctly using this code below (the email does go - the "from" email address has my login for MySQL database) EXCEPT that the data from the fields does not come through. The field labels are there as indicated below and the email is formatted correctly, but the data doesn't come through.
    mail( $to = "[email protected]", $subject = "Someone has submitted an application",
    $content= "Essay 1: ".$Essay1."\r\n"
    ."Essay 2: ".$Essay2."\r\n"
    ."Essay 3: ".$Essay3."\r\n"
    ."Essay 4: ".$Essay4."\r\n"
    ."Essay 5: ".$Essay5."\r\n");
    What am I doing wrong?
    That's problem #1 - then problem #2 is that I actually also need to send the ID code in this email for the specific record which has been created in my database so the end recipient can associate the email with that specific ID later for other purposes. So even if I figure out problem #1, I'm not sure that I can use this code for problem #2 because the field isn't on the html form, but actually created by the database upon submission.
    Any suggestions would be helpful!
    Thanks

    Moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

  • Send form data from Java class

    Hi Guys,
    Is it possible to send data using a Java class to a URL?
    Thanks

    Yes, but XML has nothing at all to do with that. Google for "java url tutorial".

  • Sending form data to a specific email address

    I have a form on an html page, and i would like to parse and process the information and send it to a specific email address.
    So far i have the information from the html page sent to a jsp page to format it a certain way. But then, how can i send it as an email message? Is there any command in the JSP spec that will allow me to do this? If not, what are my options and can you please point me to the right directions?
    Thanks
    Englebert Sarmiento

    There are a few ways to send an email in JSP. Some options are:
    - Use the JavaMail library. Search Sun's site and you'll find a tutorial on how to program with JavaMail.
    - Jakarta has a tag in its open source tag library for sending email (http://jakarta.apache.org).
    - Use a commercial library such as dotJ (http://www.dotjonline.com).

  • Data sending form

    Hi,
    I posted recently and no one responded, I had a question about form sending data to email. Anyway since no one could help me with my code I was wondering if someone had some working code which sends form data to an email address. It doesn't matter what your back end is.
    Thanks for reading.

    Hi,
    I've got a couple clarifying questions.
    1. Which version of teaming are you on?
    2. You want to send one of your custom fields from a custom entry out in the notification, correct? Or you just want a link back to the entry?
    Thanks,
    Bill Ramsey
    Novell

  • Is this (mail sending form) code right ?

    I'm not a developer , my boss gave me this php code for sending form data to his mail ..
    is this code right cuz it doesn't seem to work fine ?
    <? php
    $to = "[email protected]";                                                                                                                     
    $cc = "[email protected]";                                                                                                                     
    $bcc = "";                                                                                                                     
    $subject = "Tailor Request Form";                                                                                                                     
    $msg = "                                                                                                      
    <table border=\"1\" width=\"600\">
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Titel</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$title."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Name</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$name."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Country</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$country."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Phone</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$phone."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>E-mail</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$Email."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Tour Package</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TravelType."</td>
    </tr>
    </table>";                                
    $from = "From: ".$_POST['Email'];                                                    
    $html = "Content-Type: text/html";                                                    
    $headers = $html."\r\n".$from."\r\n".$cc."\r\n".$bcc."\r\n";                                                    
    //$headers .= "cc: [email protected]\r\n";                                                    
    mail($to, $subject, $msg, $headers);?>

    <?php
    $to = "[email protected]";                                                                                                                      
    $cc = "[email protected]";                                                                                                                      
    $bcc = "";                                                                                                                      
    $subject = "Tailor Request Form";                                                                                                                      
    $msg = "                                                                                                               
    <table border=\"1\" width=\"600\">
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Titel</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$title."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Name</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$name."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Name</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$last_name."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Country</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$country."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Phone</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$phone."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Fax</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$fax."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>E-mail</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$Email."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Tour Package</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TravelType."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Transportation</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$DTransportation."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Number Of Persons</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$NumberofPersons."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Number Of Children</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$NumberofChildren."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Single Room</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$SingleRoomNo."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Double Room</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$DoubleRoomNo."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Twin Room</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TwinRoomNo."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Triple Room</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TripleRoomNo."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">1<sup>st</sup> City of Interest</font></b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit1."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">2<sup>nd</sup> City of Interest</font></b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit2."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">4<sup>th</sup> City of Interest</font></b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit4."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><b><font face=\"Verdana\" color=\"#000000\" size=\"2\">5<sup>th</sup> City of Interest</font></b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$CitiesToVisit5."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Between Aswan and Luxor</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$TransportationFromAswanToLuxor."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Preferable Arrival Dates</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$ArrivalDay." - ".$ArrivalMonth." - ".$ArrivalYear."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Preferable Departure Dates</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=lift><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$DepartureDay." - ".$DepartureMonth." - ".$DepartureYear."</td>
    </tr>
    <tr>
    <td width=230 valign=\"middle\" align=\"right\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=right><font face=\"Verdana\" color=\"#000000\" size=\"2\"><b>Special Interests</b></td>
    <td width=370 valign=\"middle\" align=\"left\"><p style=\"MARGIN-LEFT: 5px; MARGIN-RIGHT: 5px\"
    align=justify><font face=\"Verdana\" color=\"#000000\" size=\"2\">".$SpecialInterests."</td>
    </tr>
    </table>";                                
    $from = "From: ".$_POST['Email'];                                                    
    $html = "Content-Type: text/html";                                                    
    $headers = $html."\r\n".$from."\r\n".$cc."\r\n".$bcc."\r\n";                                                     
    //$headers .= "cc: [email protected]\r\n";                                                    
    mail($to, $subject, $msg, $headers);                                   
       ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Delta Tours Egypt</title>
    <style type="text/css">
    </style>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper">
      <div id="header"></div>
      <div id="menu">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="about_egypt/about_egypt.html" class="MenuBarItemSubmenu">About Egypt</a>
            <ul>
              <li><a href="about_egypt/people.html">People</a></li>
              <li><a href="about_egypt/climate_clothes.html">Climate &amp; Clothes</a></li>
              <li><a href="about_egypt/transportation.html">Transportation</a></li>
            </ul>
          </li>
          <li><a href="cities_info/cities_info_main.html" class="MenuBarItemSubmenu">Cities Info</a>
            <ul>
              <li><a href="#">Cairo</a></li>
              <li><a href="#">Luxor</a></li>
              <li><a href="cities_info/aswan.html">Aswan</a></li>
              <li><a href="cities_info/red_sea.html">Red Sea</a></li>
              <li><a href="cities_info/sinai.html">Sinai</a></li>
              <li><a href="#">Oasis</a></li>
            </ul>
          </li>
          <li><a href="#">Hot Deals</a>      </li>
          <li><a href="#">Tailor Mode</a></li>
          <li><a href="about_us/about_us.html">About Us</a></li>
          <li><a href="contact_us.html">Contact Us</a></li>
        </ul>
      </div>
      <div id="mainMenu">  <ul>
    <li><a href="index.html">Home</a></li>
    <li><a href="tours/tours_main/classical_tours.html">Tours</a></li>
    <li><a href="hotels/hotels_home.html">Hotels</a></li>
    <li><a href="#">Cruises</a></li>
    </ul></div>
      <div id="content">
       <div id="conTop"></div>
       <div id="conBg">
          <div id="spotlight">
           <p><strong><em>Your information has been submitted <br />
            one of our operators will contact you within<br />
    24 hours for further details </em></strong></p>
    <h5 class="signature"><em><strong>Delta Tours Team </strong></em></h5>
                  <br class="clear" />
         </div>
         </div><div id="conBot"></div>
    </div>
         <div id="footer">
      <div id="footerTop"></div>
      <div id="footerMid">
        <p>Home | Tours | Hotels | Cruises | About Egypt | Cities Info | Monuments & History | Hot Deals | Tailor Made | About Us | Contact Us | links</p>
        </div>
      <div id="footerBot"></div>
      </div>
    <div id="copyRight">deltatoursegypt.com © 2012 .All rights reserved.</div></div>
    </div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • Servlet form data to mySQL DB

    Hi,
    I am creating a registration page for a small web app. I have been looking online and cant find much on how to send form data from a servlet to the appropriate table in my mySQL database. I have already designed my DB and know pretty much how to establish a connection to my DB. Any suggestions? Thanks for the help!

    Google for jdbc tutorial.
    I'd write a servlet that getParameter()'s the values, checks they are ok (-> redirect to error JSP page if not), then does the JDBC call, finally shows a "thanks" JSP. Put the JDBC stuff in a separate class, not in the servlet, so you can test it with a small main() function (or junit, but you don't have to learn everything at once, google for junit later.)
    If you want to be buzzword compatible, write a class:
    class RegistrationInfo
        private String name, password;
        boolean parse(HttpServletRequest, HttpServletResponse) {
            // Parse from request.
            // If bad parameters, redirect to error and return false.
            // Alternately, you can make parse() into a sort of a "factory": static RegistrationInfo parse()
        public void insert() { ...insert this using JDBC... }
    }With the above bit as "model", JSP as "view", and the servlet as "controller", you are MVC right there. Some people like to separate the JDBC stuff to its own class; do that if appropriate (useful if you need to support several SQL dialects, sort of non-OO otherwise (flame me! flame me!)).

  • Multipart/form-data using HTTPService, sending a binary file and some text in the same request.

    Hi There,
             I am new to FLEX and also new to writing a client for a web service.
    My question is more about flex (Flash builder 4.5) APIs, what APIs to use.
    I want to access a web service, that's published here.
    https://build.phonegap.com/docs/write_api
    here is the description of webservice
    ===========
    1) I have to do a post on POST https://build.phonegap.com/api/v1/apps
    2) content type has to be "multipart/form-data"
    3) JSON bodies of requests are expected to have the name 'data'
      data will be someting like this
    'data={"title":"API V1 App","package":"com.alunny.apiv1","version":"0.1.0","create_method":"file"}'
    4) include a zip file in the multipart body of your post, with the parameter name 'file'.
    ===========
    I want to make a 'multipart/form-data' Post and send
    one string and one zip file.
    My first question to self was If i send both string + binary data in the body ...
    how will server understand where string end and where zip file starts?
    Then read on W3.org( http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 )
    How is text + binary data can be sent through "multipart/form-data" post requst.
    there has to be some boundries.
    After this I read and example in flex and  tried following it.
    http://codeio.wordpress.com/2010/04/03/5-minutes-on-adobe-flex-mimic-file-upload-for-in-me mory-contents/
    but it doesn't seems to be working for me.
                        public function createNewApp(cb:Function , appFile : File):void
                                  var service:HTTPService = new HTTPService();
                                  service.url = ROOT+"apps";
                                  service.showBusyCursor = true;
                                  service.addEventListener(ResultEvent.RESULT, function(e:ResultEvent):void {
                                            //translate JSON
                                            trace(e.result);
                                            var result:String = e.result.toString();
                                            var data:Object = JSON.parse(result);
                                            cb(data.link);
                                  service.addEventListener(FaultEvent.FAULT, defaultFaultHandler); //todo : allow user to add his own as well
                                  authAndUploadNewApp(service,appFile);
                        private function authAndUploadNewApp(service:HTTPService,appFile : File):void {
                                  var encoder:Base64Encoder = new Base64Encoder();
                                  encoder.encode(username + ":"+password);
                                  service.headers = {Accept:"application/json", Authorization:"Basic " + encoder.toString()};
                                  service.method ="POST";
                                  var boundary:String = UIDUtil.createUID();
                                  service.contentType = "multipart/form-data; boundary=—————————" + boundary;
                                  var stream:FileStream = new FileStream();
                                  stream.open(appFile, FileMode.READ);
                                  var binaryData:ByteArray = new ByteArray();
                                  var fileData : String = new String();
                                  stream.readBytes(binaryData);
                                  stream.close();
                                  fileData = binaryData.readUTFBytes(binaryData.bytesAvailable); // I think this is where I have problem.... how do
                           //how do i converrt this bytearray/stream of data to string and send it in my post request's body - i guess if this step work rest should work..  
                                  var params: String = new String();
                                  var content:String = "—————————" + boundary + "nr";
                                  content += 'Content-Disposition: form-data; name="data";' + '{"title":"ELS test app 2","package":"com.elsapp.captivate","version":"12.3.09","create_method":"file"}' + "nr";
                                  content += "—————————" + boundary + "nr";
                                  content += 'Content-Disposition: form-data; name="file";' + fileData  + "nr";
                                  content += "—————————–" + boundary + "–nr";
                                  service.request = content;
                                  service.send();

    In the past I have used URLVariables with URLRequest and URLLoader to achieve this kind of requirement.
    Check out http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_3 .html which should be useful. My preference has always been to use this style instead of HTTPService objects, giving you a little more control which is what you need here.
    Let me know if you need any more assistance.

  • Send Reminder using the Form Dates

    Hi all.
    I don't know what is the best way to send reminders (emails) checking the Form dates .
    For example:
    There is a task assign where the user enter 5 dates (date 1, date 2, date 2.... etc)
    Then, I need to send emails to "Xpath user" when the system date  is:  "date 1" - 24 hrs (for example).  The same with date 2 , date 3... etc.
    How can I to do it?
    Need I to write the dates in Database?
    Some Ideas?
    Thanks a lot.
    Maria

    You could use a gateway with a branch for each email that will be sent. Put a Wait Point before the send email step. Set the days to wait as an XPath expression using get-days-from-dateTime-difference(current-date(), Form Date). Subtract 1 for your minus 24 hours.

  • ActiveX in BradySoft (CodeSoft) - What Class/Method/Object's would I use to send variable form data to BradySoft?

    What Class/Method/Object's would I use to send variable form data to BradySoft? I have a basic label setup in BradySoft and I want to send it variable form data (a serial number) from Labview ActiveX. I have attached Brady's ActiveX programmers guide but can't figure out what to use for this. P.S. I would call Brady or TekLynx tech support about this but they have a strict policy whereas BradySoft supports ActiveX but their tech support doesn't provide programming help with it. I figured I'd try the NI Forums.  

    Aaronb, I presume by publishing an ActiveX programmers manual the BradySoft software installs Active X objects. You may choose to interact with these objects within LabVIEW using Active X controls. The following link will provide a starting point for LabVIEW help topics on Active X communication: Select ActiveX Object Dialog Box
    http://zone.ni.com/reference/en-XX/help/371361F-01/lvdialog/insert_active_x_object/
    Building a Simple Web Browser Using ActiveX (Example of ActiveX arcitecture)
    http://zone.ni.com/devzone/cda/epd/p/id/81 Hope this helps provide a bit of guidance. Cheers!  

  • How shall i send user data to servlet by an Applet in way Form does

    it is clear that URL class provides way to connect to remote web resource. and furthermore i am trying to make an applet perform like a Form in html to send user data to a servlet. i may adhere a long name-value string to url sent by applet but this is not a good way to hide information like hidden variables. Is there any class in J2SE package that i can wrap those Form data and send them in the way Form does...?
    cheers!

    It's not a matter of form vs. not-form, it's a matter of HTTP types.
    Basically HTTP allows a connection to be of various types: GET, POST, HEAD, and some lesser used ones like DELETE which many servers won't support anyway. GET is usually used for link clicks, and puts its arguments as name/value pairs as part of the resource name. POST sends it as body data, also as name/value pairs.
    In Java, the way you do this is, starting with your URL object, get an HttpURLConnection object. Then call setRequestMethod on that HttpURLConnection object. If I recall correctly the rest is basically the same.
    Check the docs for details and stuff I may have forgotten or got wrong. Also check RFC 2616, which is the HTTP specification.

  • How to send Array data using Post Method?

    Var array = $_POST['myData'];
    array[0] => 'ABC'
    array[1] => 'DEF'
    how to improve this code to support send array data...?
    String url ="http://xxxxx/test.php";
    String[] arraystr={"ABC", "DEF", "EDFF"}
    String parameter = "myData=" +arraystr;    // no support this
    Strint str = postMrthod(url, parameter );
    public static String postMethod(String url, String parameter) {
            StringBuffer b = new StringBuffer("");
            HttpConnection hc = null;
            InputStream in = null;
            OutputStream out = null;
            try {
                hc = (HttpConnection) Connector.open(url);
                hc.setRequestMethod(HttpConnection.POST);
                hc.setRequestProperty("CONTENT-TYPE", "application/x-www-form-urlencoded");
                hc.setRequestProperty("User-Agent", "Profile/MIDP-2.0 Configuration/CLDC-1.0");
                out = hc.openOutputStream();
                byte postmsg[] = parameter.getBytes();
                for (int i = 0; i < postmsg.length; i++) {
                    out.write(postmsg);
    out.flush();
    in = hc.openInputStream();
    int ch;
    while ((ch = in.read()) != -1) {
    b.append((char) ch);
    } catch (IOException e) {
    e.printStackTrace();
    try {
    if (in != null) {
    in.close();
    if (hc != null) {
    hc.close();
    } catch (IOException e) {
    e.printStackTrace();
    return b.toString().trim();

    yes, you can send integer value like this. But I think you have to put quotes around <%= TAMID%> i.e.
    <input type="hidden" id="HTTP_CVHTAMID"
    name="HTTP_CVHTAMID" value= "<%= TAMID%>" >

Maybe you are looking for

  • Adobe CC 2014 crashes on Mac OS X 10.9.4

    Hi everybody, I've recently updated my Adobe apps to the 2014 version and I have a problem that's driving me crazy. Illustrator 2014 and InDesign 2014 work fine, but when I open Photoshop 2014 I get a 1 to 3 minutes freeze on startup, after the "load

  • How can I have the side bar in iTunes 12??

    I just installed iTunes 12 that was claimed to provide "a more pleasant interface for navigation"!?!? Personally, I do not find the new view format pleasant at all. I expected to be allowed to go back to the lateral bar visualization, finding it as a

  • BI System Object in Portal

    Hi everyone, I'm trying to to display a BI Report in the Portal. Both systems are on NW04s. The connection test of the BI system object fails with the following error: SAP Web AS Connection   Test Details: The test consists of the following steps: 1.

  • Crystal Report 10 certified/supported with Oracle11g

    Hello, I am wondering if Crystal Report 10 is certified/supported to work against a Oracle11g database? If you do not know how would I best get an answer to this question? Thank you, Marchel

  • Please resolve this issue for Project Systems

    I our org v need a solution for this scenario "After when an notification is created in tran 'IQS1' of type  'GO' by the site engineer it should be intimated to the planning engineer. The planning enginner can either 'put in process'or 'pospond'or 'c