Length UUID error

Greetings.

I'm trying to run a simple conversation using surveys BBM with BBM SDK 6.0 platform.

After recovering from the error 'Net_rim_bb_qm_platform Module not found', when you try to run my application, I had an IllegalArgumentException with the message "Eception exception: UUID must be 36 characters.

Please let me know the minimum thought to you about it.

According to the commentary in the documentation of BBM, I think you can use a service online generation UUID.

Just use your favorite search engine to find one!

Tags: BlackBerry Developers

Similar Questions

  • escape character must be the string of length 1 (error ORA-01425)

    Hi all!

    I get this error message (SQL error: ORA-01425: escape character must be the string of length 1) when querying an oracle 9i database with:

    SELECT * FROM table WHERE column LIKE '%' ESCAPE ' \';

    Bar which makes it a double backslash (included with apostrophes) would solve the problem, however, with this change, the request is more executable in a 10g database.

    Is there a way to make the executable SQL above (with a single backslash escape) code in both (and latest) versions, without changing it? Maybe a server definition database that could solve this problem...

    Suggestions for the problem described are greatly appreciated!

    Thank you

    col2 NVARCHAR2 (100)

    OK, you should have mentioned before using unicode ;)

    However, should not always identical fields be treated identically in any database?...

    Yes, they should :(

    In any case the escape string should obviously be treated as unicode so the right way, I guess, would be

      select * from mytable where col2 like N'%' escape N'\'; 
    

    Note the front N ' \' to make the unicode string.

  • ReferenceError: Error #1069: property not found on flash.display.Stage length

    Hi all

    I have 3 input textfield. Each textfield has a string pre-loaded in it. When the user presses Tab, the focus must be cycled around textfield 1-3. Now, I'm trying to set the index of the caret to the last letter of the TextField. What is the problem with the code?

    Code:

    public function myTabKeyDown(event:KeyboardEvent):void
              {
                 if (event.keyCode == Keyboard.TAB)
                 {
                        //set caret selection
                        event.currentTarget.setSelection(event.currentTarget.length, event.currentTarget.length);
                 }
              }
    

    Error:

    ReferenceError: Error #1069: the property not found on flash.display.Stage length and there is no default value.

    Thank you

    Zainuu

    If your textfields are named (you went for each text field properties and gave it a unique name) you can use the Manager of Focus see IFF it has focus to set the selection to the end.

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/FL/managers/FocusManage r.html? filter_flash = cs5 & filter_flashplayer = 10.2 & filter_air = 2.6

  • error "content length is zero.

    After 6 years of e-test, I'm now OpenScript assessment for use with our Ajax Application. I have 2 problems to solve.
    1. our application can send a length zero answers event that causes the test to abort with error * "content length is zero" * but is a perfectly valid response.
    2. I want to be able to change the content of the page should according to the value of a database variable.
    Can anyone help?
    see you soon
    Richard

    Hi Richard

    + 1. Our application can send a length zero answers event that causes the test to abort with the error "the length of the content is zero", but is a perfectly valid response. +

    In OpenScript:

    View -> OpenScript preferences -> playback -> Module Http -> error recovery; and uncheck download of length zero errors are fatal.

    Remember that when you run a load in BTA (eLoad) test you will also change the setting here:

    In BTA

    Tools -> Options -> the default Scenario is - Error Handling > > define the object download errors are fatal: false

    Note the check box next to the drop-down list, by checking that you add it to the default view of scenario, I would recommend doing so you can easily change this setting.

    + 2. I want to be able to change the content of the page should according to the value of a database variable. +

    You can do this by changing the variables and regular expressions, building, if you give us an example, I'm sure we can help you.

    Concerning

    Alex

  • Equium P300-16 t - system error writing Configuration data

    Salvation message for the first time

    I have a Toshiba Equium P300-16 t and it has developed an error starting on the screen, it says

    System error writing Configuration data
    F1 - F2 CV - Bios settings

    When it appears that I can't get the option of recovery for work the bios settings seem to be completely in-accessible.

    This error appears just under the version number of the bios and the specifications of the RAM, just after the toshiba screen. The laptop is also a beep which I think is its length bios error code just two beeps very loud and even with a very short break inbetween

    On the page that appears after F1 (curriculum vitae) is pressed it shows just an another two options that are
    F2 - Setup F12 Multiboot Menu selection

    None of these options no matter what and the system is just idle on this screen.

    Obviously, without the bios menu there is not much I can do

    Really research help solve this problem as im not very clued up on the configurations of the system

    Oh and incase it allows... BIOS version - PhoenixBIOS 4.0 release 6.1

    Thanks in advance
    Kris

    Hi mate

    It would be interesting to know if the HARD drive is listed in the BIOS.
    Could you if you please check this?
    In the BIOS, you should see the HARD drive and HARD drive details
    If it is not visible, then that would mean that the HARD drive is faulty and therefore the operating system cannot be started.

    In this case, the HARD disk needs to be changed.

  • BlackBerry Obex - UUID problem invalid?

    Hello.

    I get this invalid "UUID" error when you try to start my bluetooth server.

    Don't know what the problem is. Pointers?

    need more information, just ask me.

    Thank you

    Okay, whatever my problem... Well my problem actually really simple and stupid. What I got wrong was to have a space between the "localhost:"and the uuid, I join it. "

    So that was my problem...

  • Download of the slightest error of file system on mime_header w "digital error or value".

    I am trying to download a pdf (and xls) file from the linux file system by using this procedure. I have a directory defined for "OFFICIAL REPORTS" in Oracle, and I can verify that the file exists in this directory. The length of the queue is returned, but we get an error on the statement of owa_util.mime_header. Here is the procedure:

    CREATE or REPLACE procedure Web_Download (file_in IN VARCHAR2)
    AS
    l_filename BFILE.
    V_LENGTH NUMBER;

    BEGIN

    l_filename: = BFILENAME ("OFFICIAL_REPORTS", file_in);
    V_LENGTH: = DBMS_LOB.getlength (l_filename);

    dbms_output.put_line (' length of file: ' | v_length);
    --
    BEGIN
    -implement the HTTP header-

    -dbms_lob.open (l_filename, dbms_lob.lob_readonly);

    sys. HTP.init;

    OWA_UTIL.mime_header ("application/octet", FALSE);

    sys. HTP.p ("Content-length: ' |") v_length);

    sys. HTP.p (' Content-Disposition: attachment; filename = "" | ") file_in | '"' );

    OWA_UTIL.http_header_close;

    WPG_DOCLOAD.download_file (l_filename);

    exception
    WHEN no_data_found
    THEN
    BEGIN
    dbms_output.put_line (' end of file reached.) Closing file ');
    END;

    WHILE others
    THEN
    dbms_output.put_line (' error num: ' |) SQLCODE. "message: ' |" SUBSTR (SQLERRM, 1, 64));
    dbms_output.put_line (' another error has occurred.) Closing file ');
    -DBMS_LOB. Close (lob_loc);
    END;
    DBMS_LOB. Close (l_filename);

    END web_rs_download;
    /

    When we run the package in Oracle, we get this dbms_output:
    file length: 2819089
    error num:-6502 message: ORA-06502: PL/SQL: digital error or value
    Another error has occurred. Closing file

    In APEX, we see a download dialog box to open or save the file, but the download is 0 (empty) bytes. We checked the network ACLs, we checked the APEX body for print server settings, we are at a loss. Help, please.

    Not sure what your question is, but it works fine for me view the PDF in a page.

    html text area
    -------------
    < object data = "f? p = & APP_ID.: 1: & APP_SESSION. ": APPLICATION_PROCESS = DO_SHO_PDF:P1_FNAME:test.pdf ' type = ' application/pdf' width ="500"height ="500"> alt: < a href =" f? " p = & APP_ID.: 1: & APP_SESSION. : APPLICATION_PROCESS = DO_SHO_PDF:P1_FNAME:test.pdf "> test.pdf < / a > < / object >"

    Anonymous application, pl/sql block: DO_SHO_PDF

    DECLARE
       l_blob    BLOB;
       l_bfile   BFILE;
    BEGIN
       DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
       --l_bfile := BFILENAME ('MY_DIR', 'test.pdf');
       l_bfile := BFILENAME ('MY_DIR', v('P1_FNAME'));
       DBMS_LOB.fileopen (l_bfile);
       DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
       DBMS_LOB.fileclose (l_bfile);
       OWA_UTIL.mime_header ('application/pdf', FALSE);
       HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
       OWA_UTIL.http_header_close;
       WPG_DOCLOAD.download_file (l_blob);
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          NULL;
    END;
    

    The file download is similar:
    HTP.p (' download the bin file < a href = "f?) p ='|| v ('APP_ID') | » : 20 :'|| v ('SESSION'): ': APPLICATION_PROCESS = DOWNLOAD_FILE:P20_BINFILE :'|| v ('P20_BINFILE'). ("" "> Download < / a > ');

    Anonymous application, pl/sql block: DOWNLOAD_FILE

    pkg_name. SAVE_FILE;

    -- snippet of pkg
       PROCEDURE save_file is
           l_blob    BLOB;
           l_bfile   BFILE;
        BEGIN
             DBMS_LOB.createtemporary (l_blob, TRUE, DBMS_LOB.SESSION);
             l_bfile := BFILENAME (g_tmp_dir, v('P20_BINFILE'));
             DBMS_LOB.fileopen (l_bfile);
             DBMS_LOB.loadfromfile (l_blob, l_bfile, DBMS_LOB.getlength (l_bfile));
             DBMS_LOB.fileclose (l_bfile);
             owa_util.mime_header('application/octet', False);
             HTP.p ('Content-length: ' || DBMS_LOB.getlength (l_blob));
             htp.p('Content-Disposition: attachment; filename="'||v('P20_DISPLAYNAME')||'"');
             OWA_UTIL.http_header_close;
             WPG_DOCLOAD.download_file (l_blob);
        exception
          when others then htp.p(SQLERRM);
        END;
    

    Published by: maceyah on March 9, 2012 15:03

  • In head form validator script, error

    When I use the window/Behaveiors/to create a form validator, Dreamweaver CS5 puts the script in the page's head and seems to work ok. But when I validate with the W3c page, it says there are errors with the code and Dreamweaver has created what I have no idea what to do to put right, so could someone please help. It is code generated by Dreamweaver, all other pages have passed with flying colors!

    < script type = "text/javascript" >
    function MM_validateForm() {//v4.0
    If {(document.getElementById)
    var i, p, q, n, test, num, min, max, errors = ", args = MM_validateForm.arguments;
    for (i = 0; I <(args.length-2); I += 3) {test = args [i + 2]; val = document.getElementById (args [i]);
    If (val) {n = val.name; if ((val=val.value)! = "") {}}
    If (test.indexOf ('isEmail')! =-1) {p = val.indexOf (' @');}
    If (p < 1 | p ==(val.length-1)) errors +='-' + nm + "must contain an e-mail address. \n » ;
    } Else if (test! = 'R') {num = parseFloat (val);
    If (isNaN (val)) errors +='-' + nm + 'must contain a number. \n » ;
    If (test.indexOf ('inRange')! = - 1) {p = test.indexOf (': ');}
    min = test. Substring(8,p); Max = test. Substring (p + 1);
    If (num < min | max < num) errors +='-' + nm + must contain a number between "+ min +" and "+ max +".. " \n " ;
    }} ElseIf (test.charAt (0) == 'R') errors += '-' + nm + ' is required. \n " ; }
    } If (errors) alert ("the following error occurred: \n'+errors");
    document. MM_returnValue = (error == ");
    } }
    < /script >

    If the script works well in all browsers, you could put it in an external JS file and link to it, then the W3C validator will not find an error.

    If you do not already know, find out how to do it:

    http://www.Hypergurl.com/jsfiles.html

  • Point by Point to the incorrect values

    I use a loop that retrieves data every 10 seconds or more (ends up being a little more, but is not question.) and whenever it gets data (temperature), it passes through the gap of Point by Point VI in order to produce a cumulative gap and the average. Previously, I used the Point by Point VI average to get the average, but learned that the gap VI had included average.

    My wired terminals is x, standard deviation, mean

    Unwired: sample length, initialize, error

    I ran the VI overnight for a total of about 18 hours, where he collected every 10 seconds (6690 data points). The temperature that has been read began at about 27 ° C and cooled to 25 ° C and then is held. On the façade, the average temperature (for the trial) was 24,977 0.017 ± ° C, which does not seem right to me. So I imported the data into Excel and used '= AVERAGE()' and 'STDEV() =' to get a value of ± 25.860 0,774 ° C.

    Why is there a difference in these values? The only thing I can think is that the gap of Point by Point VI back on, but why can't think. Perhaps because I do not connect any value to the "sample length" Terminal, but I assumed that it would use the entire sample when unwired.

    In fact, the function does exactly what it's supposed to.  If you read the documentation, you'll see that the VI has so many samples for the calculation (default is 100).  If it was actually a mobile average/std deviation.  Help:

    the sample length is the length of each set of incoming data. The VI does the calculation for each set of data. The default value is 100. When you set the length of the sample to zero, the VI calculates a cumulative solution for the input data as soon as you have called or initialized the VI. When the setting of the length of the sample is greater than zero, the VI calculates the solution for only the new set of input data.

    So what you really want to do is the length of the sample in 0.

  • Fitness area

    Hello

    I have a little problem with my form. When I added it to my page, it appeared this immovable mass of white... I can't find the problem in the code, and I was hoping someone could help me to solve it.

    Here is the screenshot of the problem:

    Screen shot 2014-02-27 at 12.09.38.png

    And here is the code:

    < ! 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 "> <!-InstanceBegin template="/Templates/main.dwt ' codeOutsideHTMLIsLocked = 'false'->

    < head >

    < name meta = "keywords" content = "snow mountain resort ski scotSki thrilling Explorer holiday" / >

    < name meta = "description" content = "ski Web site" / >

    < meta content = "author" name = "Andrew Waddell" / >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    <!-InstanceBeginEditable name = "doctitle"-->

    Contact us < title > < /title >

    <! - InstanceEndEditable - >

    < link href = "oneColLiqCtrHdr.css" rel = "stylesheet" type = "text/css" / > "

    < style type = "text/css" >

    <!--

    a: hover {}

    color: #C63;

    }

    a: link {}

    color: 0033ff;

    }

    {body

    background-color: #ccffff;

    color: #3366ff

    }

    body, td, th {}

    color: #3366ff;

    }

    form {}

    background-color: #FFF;

    }

    {text}

    text: Arial, Helvetica, without serif.

    }

    ->

    < / style >

    <!-InstanceBeginEditable name = "head"->

    < script type = "text/javascript" >

    <!--

    function MM_validateForm() {//v4.0

    If {(document.getElementById)

    var i, p, q, n, test, num, min, max, errors = ", args = MM_validateForm.arguments;

    for (i = 0; I <(args.length-2); I += 3) {test = args [i + 2]; val = document.getElementById (args [i]);

    If (val) {n = val.name; if ((val=val.value)! = "") {}}

    If (test.indexOf ('isEmail')! =-1) {p = val.indexOf (' @');}

    If (p < 1 | p ==(val.length-1)) errors +='-' + nm + "must contain an e-mail address. \n » ;

    } Else if (test! = 'R') {num = parseFloat (val);

    If (isNaN (val)) errors +='-' + nm + 'must contain a number. \n » ;

    If (test.indexOf ('inRange')! = - 1) {p = test.indexOf (': ');}

    min = test. Substring(8,p); Max = test. Substring (p + 1);

    If (num < min | max < num) errors +='-' + nm + must contain a number between "+ min +" and "+ max +".. " \n " ;

    }} ElseIf (test.charAt (0) == 'R') errors += '-' + nm + ' is required. \n " ; }

    } If (errors) alert ("the following error occurred: \n'+errors");

    document. MM_returnValue = (error == ");

    } }

    ->

    < /script >

    <! - InstanceEndEditable - >

    < / head >

    < body class = "oneColLiqCtrHdr" >

    < div id = "container" >

    < div id = "header" > <!-end #header->

    < div id = "nav" >

    < div align = "center" >

    < p > < a href = "index.html" > < img src = "Images/Banner Image/bannerimage.png" width = "500" height = "100" alt = "banner_logo_snow_mountain" / > < /a > < /p > ""

    < a href = "index.html" > < /a > home page | <!-InstanceBeginEditable name = "nav_bar"--> < a href = "packages.html" > packages < /a > <! - InstanceEndEditable - > | < a href = "ski_centers.html" > < /a > Ski Resorts | < a href = "about_us.html" > < /a > about us | < a href = "contact_us.html" > contact us < /a >

    < / div >

    < / div >

    < / div >

    <!-InstanceBeginEditable name = "main_content"->

    < div id = "mainContent" >

    < h1 > < u > contact us < /u > < / h1 >

    < div id = 'hand' >

    < img style = 'right'; alt = "contact_agent" src = "Images/Contact Us/contact_agent.jpg" width = "475" height = "336" / >

    < p > < / p > < p > < / p >

    < p > < / p >

    < do action = "" method = "get" > "

    < table width = "266" border = "1" >

    < b >

    < td width = "84" > name < table >

    < td width = "166" > < label >

    < input name = "FirstName" type = "text" id = "first name" onblur = "MM_validateForm ('first name',", 'R'); " return document. MM_returnValue"/ >

    < / label > < table >

    < /tr >

    < b >

    last name < td > < table >

    < td > < label >

    < input name = "name" type = "text" id = "name" onblur = "MM_validateForm ('name',", 'R'); " return document. MM_returnValue"/ >

    < / label > < table >

    < /tr >

    < b >

    Address < td > < table >

    < td > < label >

    < input name = "address" type = "text" id = "address" onblur = "MM_validateForm ('address',", 'R'); " return document. MM_returnValue"/ >

    < / label > < table >

    < /tr >

    < b >

    < td > code postal < table >

    < td > < label >

    < input name = "PostalCode" type = "text" id = "PostalCode" onblur = "MM_validateForm ('postcode',", 'R'); " return document. MM_returnValue"/ >

    < / label > < table >

    < /tr >

    < b >

    Tel. < td > < p >. No < /p > < table >

    < td > < label >

    < input name = "" as no "type ="text"id ="tel_no"onblur =" MM_validateForm ('tel_no', ", 'R'); return document. MM_returnValue"/ >

    < / label > < table >

    < /tr >

    < b >

    Email < td > < table >

    < td > < label >

    < input name = "email" type = "text" id = "email" onblur = "MM_validateForm ('email',", 'R'); " return document. MM_returnValue"/ >

    < / label > < table >

    < /tr >

    < /table >

    < label >

    < input type = "submit" name = "submit" id = "submit" value = "Submit" / >

    < / label >

    < label >

    < input type = "reset" name = 'clear' id = 'clear' value = "Reset" / >

    < / label >

    < / make >

    < center > phone: 01236 756114.

    < a href = "mailto: " [email protected] "> please < /a > | .

    Postal code: ML6 0HY. < /Center >

    < p > < / p >

    < / div >

    <!-end #mainContent->

    < / div >

    <! - InstanceEndEditable - >

    < div id = "footer" >

    < p > Andrew Waddell & copy; 2014 < /p >

    <!-end #footer--> < / div >

    <!-end #container--> < / div >

    < / body >

    <! - InstanceEnd - > < / html >

    You have set the background color of the form to white what do you want?

    form {}

    background-color: #FFF;

    }

    Unless you have the shape of a container or set a specific width it will stretch just across the page from where the white space, you see.

  • Script to work around bugs in Illustrator

    Newbee here, we work in Illustrator CS5.  I've gathered a few scripts and Actions for automating many parts of our work.

    I'll start with what we have now.  What we have now works on Mac and PC, and if there is a way around these BUGS, it should work on Mac & PC.

    (1) we have a .ai (our default format) file that we can open and inside the text fills in automatically when you start a script. (see Custom below script) Some text boxes fills in the date based on the current date on our computer, some areas of text fills a name based on the name of the electronic .ai file.

    Screen shot 2012-10-10 at 4.33.22 PM.jpg

    See the red boxes.

    Screen shot 2012-10-10 at 4.33.40 PM.jpg

    One of the difficulties that I have worked on is, sometimes in one of the fields in the file, it must have a name composed of only 4 sections (or 3 dashes). In the example: ILSLIM = 1, = 2, TEST 3 = EXAMPLE & AA01 = 4.

    Screen shot 2012-10-10 at 4.34.21 PM.jpg

    Thus, when it then produces the last indent in this area of text on our format (not all of the other text boxes) will need the 3rd indent removed (now it's only 3 sections because TESTAA01 has become a).

    Screen shot 2012-10-10 at 4.43.05 PM.jpg

    So I created an 'Action' Illustrator who will be after the 'ChangeFileNameDate' script is executed, 'The Action' will select the text area and then run 'Search and replace' to remove the 3rd indent as seen above.

    NOW THE PROBLEMS!  (Illustrator bugs)

    (1) in Illustrator 'Actions' when you save an 'Action' & the 'Insert Menu Item... ". "lets put a Script, it will work.  BUT when you exit out of Illustrator & then start the custom Script again will disappear. I looked in this & it's a known bug for years in Illustrator which is still not fixed.

    http://js4ai.blogspot.com/2012/03/how-to-permanently-tie-script-to-action.html

    Screen shot 2012-10-10 at 5.00.50 PM.jpg

    Screen shot 2012-10-10 at 5.01.19 PM.jpg

    Screen shot 2012-10-10 at 5.01.33 PM.jpg

    Work up to what you quit and restart.

    BEFORE LEAVING.

    Screen shot 2012-10-10 at 5.01.41 PM.jpg

    AFTER RELAUNCH.

    Screen shot 2012-10-10 at 5.05.03 PM.jpg

    SO the only work-around, I can get to work for now is to «Insert Menu Item»... ««Other script...» "& it will remain same after restarts, BUT whenever we run 'Action' we must manually select the script. (SHIT)

    Screen shot 2012-10-10 at 5.13.54 PM.jpg

    Screen shot 2012-10-10 at 5.14.08 PM.jpg

    Yet here, after relaunch.

    Screen shot 2012-10-10 at 5.14.25 PM.jpg

    MORE A BUG with the 'Find and replace' registration.  In case you don't know, when you save 'Actions' in Illustrator, you can; save one of the actions that require a dialog box; ((1) to-for either have the dialog go up then you can get everything you need in it or 2) you might NOT get dialog box up to & action will do whatever she had in her when she you recorded.  This feature is turned on or off by clicking on the box next to the check box on or off (see photo).

    Screen shot 2012-10-11 at 9.17.08 AM.jpg

    The BUG is so, for my 'Actions' that use the "Find and replace" to remove the dashboard to work for some reason that I have to have the first "find and replace" stages of dialogue botton ON so that the "Find and replace" dialog box opens.

    Let me explain, when you register to use the "Find and replace" it works perfectly even with the dialog box option clicked but if you quit Illustrator and then restart it and try to launch "Actions" which have the "Find and replace" in them then Illustrator crash.  So the only work around that I found for this BUG DIPSHIT is simply having 1 'find and replace' in the 'Action' registered with the dialog box set to (to open when the Action is performed) and then must manually close it.  We owe nothing within this type.  He must simply open & close and then have it.  Then for some reason any the rest of 'Actions' recorded will run out with boxes of open dialogue with the removal of the 3rd dashboard as when I registered 1.

    So basically, if I want to 'Actions' to work at this point I must do this.  whenever I raise the Illustrator I would need to manually load the script custom 'Actions' and I would need to open and close the box "find and replace".  It's the whole issue of the 'Actions' CRAP & Scripts are so I can do everything MANUALLY, no..  We should be able to make it work for us!

    OR maybe that would be the best solution!


    If in the "ChangeFileNameDate" custom script, it could just open and then close the box "Find and replace" (which would solve the bat with "Find and replace" in 'actions') then the custom script could cause 'The Action' to play instead of 'The Action' causing the custom script to play.  All we would have to do is slip down to the custom script of 'File' & who.  No don't crash, no babysitting.

    DOES ANYONE KNOW HOW OR IF THIS IS POSSIBLE?  To add to the attached script:

    (1) initially to open and close the box "find and replace".

    (2) at the end to cause 'action' saved to run.

    WE WOULD BE SO VERY, VERY, VERY GRATEFUL!

    //////////////////////////////////////////////////////////// english //
    // ----------------------
    // -=> WR-DateAndTime <=-
    // ----------------------
    //
    // A Javascript for Adobe Illustrator
    // by Wolfgang Reszel ([email protected])
    //
    // Version 0.9 from 22.9.2011
    //
    // This script inserts the actual date or the actual time to a
    // predefined position in the document.
    //
    // To define the position, you'll have to create an textobject and
    // execute this script while the object is selected. The whole object
    // has to be selected and not words or letters. You can mark more
    // objects, if you select each object separate and execute
    // the script on it.
    //
    // With the placeholders {DATE} and {TIME} you are able to define a
    // particular point, where the date or the time should be replaced.
    // If there is no placeholder in the textobject
    // "{FILENAME}{FILEEXT} ({DATE}, {TIME})" will be used as standard placeholders.
    //
    // To update the date and time execute this script without any object
    // selected.
    //
    // There are some additional placeholders:
    //   {FILE}     - complete document-filename with path
    //   {FILEPATH} - only the documents filepath
    //   {FILENAME} - the filename of the document
    //   {FILEEXT}  - the file extension of the document inclusive dot
    //
    // On my system this script can't see the path of the document, when
    // it was opened directly from windows Explorer (double click).
    //
    // In Illustrator CS it is now possible to edit a DateAndTime-Object.
    //
    // To enable the english messages and date-format change the "de"
    // into "en" in line 90.
    //
    // Sorry for my bad english. For any corrections send an email to:
    // [email protected]
    //
    //////////////////////////////////////////////////////////// Deutsch //
    // ----------------------
    // -=> WR-DateAndTime <=-
    // ----------------------
    //
    // Ein Javascript fuer Adobe Illustrator
    // von Wolfgang Reszel ([email protected])
    //
    // Version 0.9 vom 30.9.2011
    //
    // Dieses Skript fuegt das aktuelle Datum und die aktuelle Uhrzeit an
    // eine vorher bestimmte Stelle im Dokument ein.
    //
    // Um eine Stelle zu bestimmen, muss man ein Textobjekt erzeugen, es
    // markieren und dann dieses Skript aufrufen. Es muss das gesamte Objekt
    // ausgewaehlt sein, nicht etwa Buchstaben oder Woerter. Es lassen sich
    // nacheinander auch mehrere Objekte als Datum/Uhrzeit markieren.
    //
    // Mit den Platzhaltern {DATE} und {TIME} (in geschweiften Klammern)
    // kann man bestimmen, wo genau im Text das Datum und die Uhrzeit
    // erscheinen soll. Sind die Platzhalter nicht vorhanden, wird
    // automatisch "{FILENAME}{FILEEXT} ({DATE} - {TIME})" verwendet.
    //
    // Zum Aktualisieren des Datums/Uhrzeit muss man dieses Skript aufrufen
    // wenn kein Objekt ausgewaehlt ist.
    //
    // Es gibt noch einige zusaetzliche Platzhalter:
    //   {FILE}     - kompletter Dateiname mit Pfad
    //   {FILEPATH} - nur der Verzeichnispfad des Dokuments
    //   {FILENAME} - der Dateiname des Dokuments
    //   {FILEEXT}  - die Dateiendung des Dokuments inklusive Punkt
    //
    // Auf meinem System kann der Pfad nicht ermittelt werden, wenn das
    // Dokument vom Windows Explorer geoeffnet wird (Doppel-Klick).
    //
    // InÿIllustrator CSÿkann man nun ein Datum/Uhrzeit-Objekt bearbeiten.
    //
    // Um dieses Skript mit deutschen Meldungen und Datumsformat zu
    // versehen, muss in Zeile 90 das "en" durch ein "de" ersetzt werden.
    //
    // Verbesserungsvorschlaege an: [email protected]
    //
    
    //$.bp();
    
    // -------------------------------------------------------------------
    
    var language="en";   // "de" fuer Deutsch
    
    // -------------------------------------------------------------------
    
    var WR="WR-DateAndTime v0.9\n\n";
    
    var AIversion=version.slice(0,2);
    
    if (language == "de") {
    
      var format_preset = "{FILENAME}{FILEEXT} ({DATE} - {TIME})";
    
      var MSG_unsetmark = WR+"Dieses Objekt ist als aktuelles Datum/Uhrzeit markiert, soll die Markierung aufgehoben werden?";
      var MSG_setmark = WR+"Soll dieses Textobjekt als aktuelles Datum/Uhrzeit markiert werden?";
      var MSG_askformat = WR+"Soll das Textobjekt als Datum/Uhrzeit formatiert werden? Formate:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} und {FILEEXT}:"
      var MSG_editformat = WR+"Datums-/Uhrzeitformat bearbeiten (Leer = entfernen). Formate:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} und {FILEEXT}:"
      var MSG_notexto = WR+"Kein Textobjekt!";
      var MSG_selectedmany = "Zum Markieren als aktuelles Datum/Uhrzeit darf nur ein Textobjekt ausgew\xE4hlt sein und falls Sie die Daten aktualisieren wollen, darf kein Objekt ausgew\xE4hlt sein.";
      var MSG_nodocs = WR+"Kein Dokument ge\xF6ffnet."
      var Timeformat = 24;
      var TimeSep = ":";
      var AM = " am";
      var PM = " pm";
      var Dateformat = "dd.mm.yyyy";
    
    } else {
    
      var format_preset = "{FILENAME} ({DATE}, {TIME})";
    
      var MSG_unsetmark = WR+"This object is marked as actual date'n'time, do you want to remove the mark?";
      var MSG_setmark = WR+"Do you want to mark the selected textobject as actual date'n'time?";
      var MSG_askformat = WR+"Do you want to mark the textobject as actual date'n'time? Formats:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} and {FILEEXT}:"
      var MSG_editformat = WR+"Edit date'n'time (empty = remove). Formats:\n{DATE}, {TIME}, {FILE}, {FILEPATH}, {FILENAME} and {FILEEXT}:"
      var MSG_notexto = WR+"No textobject!";
      var MSG_selectedmany = "To mark as actual date'n'time, you have to select only one textobject. If you want to update the date'n'time-objects, there must be no object selected.";
      var MSG_nodocs = WR+"You have no open document."
      var Timeformat = 12;
      var TimeSep = ":";
      var AM = " am";
      var PM = " pm";
      var Dateformat = "yyyymmdd";
    
    }
    
    var error=0;
    
    if (documents.length<1) {
      error++;
      alert(MSG_nodocs)
    }
    
    if (error < 1) {
      date_n_time();
    }
    
    function TodayDate()
    {
      var Today = new Date();
      var Day = Today.getDate();
      var Month = Today.getMonth() + 1;
      var Year = Today.getYear();
      var PreMon = ((Month < 10) ? "0" : "");
      var PreDay = ((Day < 10) ? "0" : "");
      if(Year < 999) Year += 1900;
    
     var theDate = Dateformat.replace(/dd/,PreDay+Day);
     theDate = theDate.replace(/mm/,PreMon+Month);
     theDate = theDate.replace(/d/,Day);
     theDate = theDate.replace(/m/,Month);
     theDate = theDate.replace(/yyyy/,Year);
     theDate = theDate.replace(/yy/,Year.toString().substr(2,2));
    
     return theDate;
    }
    
    function TodayTime()
    {
      var Today = new Date();
      var Hours = Today.getHours();
      var Minutes = Today.getMinutes();
      var Suffix = "";
      if (Timeformat == 12) {
        if (Hours >= 12 ) {
     Suffix = PM;
     } else {
     Suffix = AM;
     }
     if (Hours >= 13) {
     Hours = Hours - 12;
     }
     if (Hours < 1) {
     Hours = Hours + 12;
     }
     }
      var PreHour = ((Hours < 10) ? "0" : "");
      var PreMin = ((Minutes < 10) ? "0" : "");
      return PreHour+Hours+TimeSep+PreMin+Minutes+Suffix;
    }
    
    function DateUpdate(Name) {
      var docpath = activeDocument.path.fsName;
      var docname = activeDocument.name.replace(/(.*?)(?:\.([^.]+))?$/,'$1');
      var extension = activeDocument.name.replace(/(.*?)(?:(\.[^.]+))?$/,'$2');
      if (docpath.slice(2,3) == "\\") {
        docsep = "\\";
      } else {
        docsep = ":";
      }
      var content = Name.slice(11);
      var content = content.replace(/\{FILE\}/,docpath+docsep+docname);
      var content = content.replace(/\{FILEPATH\}/,docpath);
      var content = content.replace(/\{FILENAME\}/,docname);
      var content = content.replace(/\{FILEEXT\}/,extension);
      var content = content.replace(/\{DATE\}/,TodayDate());
      var content = content.replace(/\{TIME\}/,TodayTime());
      return content;
    }
    
    function date_n_time()
    {
      if (selection.length == 1) {
        if (selection[0].typename == "TextArtItem" || selection[0].typename == "TextFrame") {
          if (selection[0].name.slice(0,11) == "actualDate:") {
            dateformat = selection[0].name.slice(11);
            Check = false;
            if (AIversion == "10") {
              Check = confirm( MSG_unsetmark );
            } else {
              dateformat = prompt(MSG_editformat, dateformat);
            }
            if(dateformat != "" && Check) {
              selection[0].contents = selection[0].name.slice(11);
              selection[0].name="";
              selection[0].selected = false;
            }
            if(dateformat == "" && !Check) {
              selection[0].name="";
              selection[0].selected = false;
            }
            if(dateformat && dateformat !="" && !Check) {
              selection[0].name="actualDate:"+dateformat;
              selection[0].contents = DateUpdate(selection[0].name);
            }
          } else {
            dateformat = selection[0].contents;
            if(dateformat.search(/\{DATE\}/) == -1 && dateformat.search(/\{TIME\}/) == -1 && dateformat.search(/\{FILE[A-Z]*\}/) == -1) dateformat = format_preset;
            Check = false;
            if (AIversion == "10") {
              Check = confirm( MSG_setmark );
            } else {
              dateformat = prompt(MSG_askformat, dateformat);
            }
            if (dateformat || Check) {
              selection[0].name="actualDate:"+dateformat;
              selection[0].contents = DateUpdate(selection[0].name);
              selection[0].selected = false;
            }
          }
        } else {
          alert ( MSG_notexto );
        }
      } else if (selection.length > 1) {
        alert ( MSG_selectedmany );
      } else {
        if (AIversion == "10") {
          var textArtItems = activeDocument.textArtItems;
          for (var i = 0 ; i < textArtItems.length; i++)
          {
            if (textArtItems[i].name.slice(0,11) == "actualDate:") {
              textArtItems[i].selected = true;
              textArtItems[i].contents = DateUpdate(textArtItems[i].name);
            }
          }
        } else {
          var textFrames = activeDocument.textFrames;
          for (var i = 0 ; i < textFrames.length; i++)
          {
            if (textFrames[i].name.slice(0,11) == "actualDate:") {
              textFrames[i].selected = true;
              textFrames[i].contents = DateUpdate(textFrames[i].name);
            }
          }
        }
      }
    }
    
    

    I THANK GOD ALMIGHTY!  A friend who knows AppleScript helped me to understand!

    executives of related texts var = activeDocument.textFrames;

    for (var i = 0; i)< textframes.length;="">

    If (.note executives of related texts [i] == 'NAME of the SUPERIOR FORDDOC') {}

    var frameName = .silence frames linked text [i];

    newFrame = frameName.replace (/(.*-.*-.*)-(. *) /, "$1$ 2");

    related texts [i] = newFrame .silence frameworks

    }

  • Automatic calculation of option buttons

    Hello

    I have a purchase order (no ecommerce) with several text fields, and radio buttons 3 3 different transport costs. The form Manager is PHP.

    I managed to get the value of the click of what cargo back in an email, but can't work how to add this charge to the total of cargo or to include these fees in a confirmation email to the Viewer. I tried all kinds of combinations but unable to get transport costs to be included in the total.

    Grateful for any advice, thanks.

    HTML;


    < ! 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 >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > contact us and order online at Hamden vineyard 214 dry river road, Martinborough < /title >

    < name meta = "description" content = "Vineyard Hamden is located on the river terraces dry about six kilometres south of Martinborough on Dry River Road." The vineyards of its high site has spectacular views to the beaches of Tararua Ranges"/ >

    " < script src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.8.0/jQuery.min.js "> < / script > .

    "< script src="js/jquery.validate.min.js "> < / script >

    < script src = "SpryAssets/SpryValidationTextField.js" type = "text/javascript" > < / script > "

    < script src = "SpryAssets/SpryValidationRadio.js" type = "text/javascript" > < / script > "

    < link href = "css-files/hand - styles.css" rel = "stylesheet" type = "text/css" / >

    < link href = "css-files/menu - styling.css" rel = "stylesheet" type = "text/css" / >

    < link href = "css-files/order-form - css.css" rel = "stylesheet" type = "text/css" / >

    < script type = "text/javascript" >

    function MM_validateForm() {//v4.0

    If {(document.getElementById)

    var i, p, q, n, test, num, min, max, errors = ", args = MM_validateForm.arguments;

    for (i = 0; I <(args.length-2); I += 3) {test = args [i + 2]; val = document.getElementById (args [i]);

    If (val) {n = val.name; if ((val=val.value)! = "") {}}

    If (test.indexOf ('isEmail')! =-1) {p = val.indexOf (' @');}

    If (p < 1 | p ==(val.length-1)) errors +='-' + nm + "must contain an e-mail address. \n » ;

    } Else if (test! = 'R') {num = parseFloat (val);

    If (isNaN (val)) errors +='-' + nm + 'must contain a number. \n » ;

    If (test.indexOf ('inRange')! = - 1) {p = test.indexOf (': ');}

    min = test. Substring(8,p); Max = test. Substring (p + 1);

    If (num < min | max < num) errors +='-' + nm + must contain a number between "+ min +" and "+ max +".. " \n " ;

    }} ElseIf (test.charAt (0) == 'R') errors += '-' + nm + ' is required. \n " ; }

    } If (errors) alert ("the following error occurred: \n'+errors");

    document. MM_returnValue = (error == ");

    } }

    < /script >

    < script language = "JavaScript" type = "text/javascript" >

    <!--

    / * This script is Copyright (c) Paul McFedries and

    Logophilia Limited (http://www.mcfedries.com/).

    It is permissible to use this script as

    This copyright notice remains in talk.

    function CalculateTotal (frm) {}

    var order_total = 0

    Browse all fields in the form

    for (var i = 0; i < frm.elements.length; ++ I) {}

    Get the current domain

    form_field = frm.elements [i]

    Get the name of the field

    form_name = form_field.name

    What is a field 'product '?

    If (form_name.substring (0.4) == "PROD") {}

    If so, check out the price of the name

    item_price = parseFloat (form_name.substring (form_name.lastIndexOf ("_") + 1))

    Get the amount

    item_quantity = parseInt (form_field.value)

    Update the order total

    If (item_quantity > = 0) {}

    order_total += item_quantity * item_price

    }

    }

    }

    Display the total rounded to two decimals

    document.getElementById("order_total").firstChild.data = "$" + round_decimals (order_total, 2)

    }

    function round_decimals (original_number, decimal) {}

    var = original_number Result1 * Math.pow (10 digits)

    Result2 = Math.round (result1) var

    var result3 = result2 / Math.pow (10 digits)

    Return pad_with_zeros (result3, decimal)

    }

    function pad_with_zeros (rounded_value, decimal_places) {}

    Convert the number to a string

    var rounded_value.toString () = value_string

    Locate the decimal point

    var decimal_location = value_string.indexOf(".")

    Is there a decimal point?

    If (decimal_location ==-1) {}

    If not, then all of the decimals will be complemented by 0

    decimal_part_length = 0

    If decimal_places is greater than zero, fired on a decimal point

    value_string += decimal_places > 0? "." : ""

    }

    else {}

    If so, then only the additional decimals will be complemented by 0

    decimal_part_length = value_string.length - decimal_location - 1

    }

    Calculate the number of digits that must be completed with 0

    var pad_total = decimal_places - decimal_part_length

    If (pad_total > 0) {}

    The string with 0 buffer

    for (var counter = 1; counter < = pad_total; counter ++)

    value_string += '0 '.

    }

    return value_string

    }

    ->

    < /script >

    < link href = "SpryAssets/SpryValidationTextField.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "SpryAssets/SpryValidationRadio.css" rel = "stylesheet" type = "text/css" / > "

    < / head >

    < body >

    < div id = "outer-wrapper-contact-us" >

    < div id = "lh-col-contact-us" >

    < div id = "hamden-real estate-title-lh" > < / div >

    < div id = "lh-col-image" > < / div >

    < div id = "main menu" >

    < div class = "arrowgreen" >

    < ul >

    < li > < a href = "index.html" > HOME < /a > < /li >

    < li > < a href = "index.html" > STORY < /a > < /li > BROTHER

    < li > < a href = "sur-us.html" > ABOUT US < /a > < /li >

    < li > < a href = "vintage - notes.html" > NOTES VINTAGE < /a > < /li >

    < li > < a href = "contact - us.html" title = 'Tools' > map of < /a > < /li >

    < li > < a href = "contact - us.html" > ORDER online < /a > < /li >

    < li > < a href = "contact - us.html" class = "selected" title = "Contact us" > CONTACT US < /a > < /li >

    < /ul >

    < / div >

    < / div >

    < / div >

    < div id = 'top-banner-words' > < div id = 'mast-title-contact-us' > < / div > < / div >

    < div id = 'bottom-image contact-us' > < / div >

    < div id = "main-content-area-contact-us" >

    < div class = "contact-us-text" >

    < / div >

    < div id = "contact-text-line-one" > to 214 Dry River Road, Martinborough < / div >

    < div id = "contact-text-line-2" > (06) 306 8001 or 0274 848 439, or send us an < / div >

    < div id = "contact-text-line-three" > < a href = "mailto: " [email protected] "> [email protected] < /a > < / div > "

    < div id = "contact-text-line-4" > < / div >

    < div id = "contact-text-line-five" > < / div >

    "< div id="main-content-area-contact-us-upper "> use the form of friendly contact below to order wine with us. As soon as we receive your order, we will send you confirmation and your order reference number. Payments must be made directly to our account once you have received this reference number. < br / >

    < / div >

    "< div id="main-content-area-contact-us-lower "> < / div >

    < / div >

    < div id = "contact-us-HR-image-support" >

    "< div class="contact-us-rh-image-holder-top ">

    "" < a id="contact-us-rh-image-holder-top" href = " https://maps.Google.co.nz/maps?q=214+dry+river+road, + Martinborough & hl = en & client = safari & oe = UTF-8 & hnear = 214 + dry + river + Rd, + Dyerville + 5781, + Wellington & t = h & z = 16 "target ="_new"> < / a > "

    < / div >

    "< div id="contact-us-rh-image-holder-bot "> < / div >

    < / div >

    < div id = "contact-us-content-low" >

    < div id = "contact-we-form-support" >

    < div id = "orderForm" >

    < form action = "php-files/contact-form-Manager - test.php" id = 'command' method = "post" name = "form" >

    < p > < span class = 'label-field-name' > name: </span >

    < input name = "name" type = "text" class = "field-name" / >

    < span class = 'label-field-name' > Street: </span >

    < input name = "address" type = "text" class = "address a" id = "address" / >

    < /p >

    < p > < span class = 'label-field-name' > Email:

    </span >

    < label >

    < input name = "email" type = "text" class = "email-field" id = "email" onblur = "MM_validateForm ('email',", 'RisEmail'); " return document. MM_returnValue"/ >

    < span class = 'label-field-name' > suburbs: </span > < / label >

    < input name = "addresstwo" type = "text" class = "address two' id = 'addresstwo' / >

    < br / >

    < br / >

    < span class = 'label-field-name' > phone: </span >

    < input name = "phone" type = "text" class = 'phone-field' id = 'phone' / >

    < span class = 'label-field-name' > City: </span >

    < input name = "addressthree" type = "text" class = 'address-three' id = 'addressthree' / >

    < table width = "628" border = "0" >

    < b >

    < td width = "200" class = 'name-wine-five' > < table > Type of wine

    < td width = "80" > < table >

    < td width = "116" align = "center" class = ' amount' > number < br / >

    the single < br / >

    < table > bottles

    < td width = "39" class = ' amount' > price per bottle < table >

    < td width = "80" align = "center" class = ' amount' > number < br / >

    full < br / >

    If < table >

    < td width = "87" align = "center" class = ' amount' > price < br / >

    by < br / >

    If < table >

    < /tr >

    < b >

    < class td 'name-wine-five' = > Chardonnay 2011 < table >

    < td > < input type = "checkbox" name = "vitivinicole1" value = "Chardonnay 2011" id = "vitivinicole1" / > < table > "."

    < td align = "center" > < input name = "PROD_Chardonnay2011Bottles_20" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < class td = 'amount' > $ 20.00 < table >

    < td > < input name = "PROD_Chardonnay2011Cases_204" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < td align = "center" class = "$" > 204.00 < table >

    < /tr >

    < b >

    < class td 'name-wine-five' = > Pino grey 2011 < table >

    < td > < input type = "checkbox" name = "wine2" value = "Pino grey 2011" id = "wine2" / > < table > "."

    < td align = "center" > < input name = "PROD_PinoGris2011Bottles_21" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < class td = 'amount' > $ 21.00 < table >

    < td > < input name = "PROD_PinoGris2011Cases_228" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < td align = "center" class = ' amount' >$ 228.00 < table >

    < /tr >

    < b >

    < class td 'name-wine-five' = > Sauvigon white 2011 < table >

    < td > < input type = "checkbox" name = "wine3' value = ' Sauvigon white 2011" id = "wine3" / > < table > "."

    < td align = "center" > < input name = "PROD_SauvigonBlanc2011Bottles_20" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < class td = 'amount' > $ 20.00 < table >

    < td > < input name = "PROD_SauvigonBlanc2011Cases_204" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < td align = "center" class = "$" > 204.00 < table >

    < /tr >

    < b >

    < class td 'name-wine-five' = > Riesling 2012 < table >

    < td > < input type = "checkbox" name = "wine4" value = "Riesling 2012" id = "wine4" / > < table > "."

    < td align = "center" > < input name = "PROD_Riesling2012Bottles_20" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < class td = 'amount' > $ 20.00 < table >

    < td > < input name = "PROD_Riesling2012Cases_204" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < td align = "center" class = "$" > 204.00 < table >

    < /tr >

    < b >

    < class td 'name-wine-five' = > Pino black 2009 < table >

    < td > < input type = "checkbox" name = "wine5" value = "Pino black 2009" id = "wine5" / > < table > "."

    < td align = "center" > < input name = "PROD_PinotNoir2009Bottles_25" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < class td = 'amount' > $ 25.00 < table >

    < td > < input name = "PROD_PinotNoir2009Cases_250" type = "text" class = "selection-box" onchange = "CalculateTotal (this.form)" / > < table > "

    < td align = "center" class = 'amount' > $ 250.00 < table >

    < /tr >

    < b >

    < td colspan = "6" class = "name-wine-five" > mixed cases are also available at the price per bottle case. < table >

    < /tr >

    < b >

    < td valign = "top" class = "name-wine-five" > mixed case by command: < table >

    < td colspan = "5" > < label >

    < name textarea = 'message' id = cols 'message' "47" = lines = "5" > < / textarea >

    < / label > < table >

    < /tr >

    < b >

    < class td 'name-wine-five' = > cargo (by order) < br / > < span class = ' amount' > please insert 1 in each zone </span > < table >

    < td colspan = "4" class = "name-wine-five" >-North Island

    < table width = "58" border = "0" align = "right" >

    < tr valign = "middle" >

    < td width = "48" >

    < table >

    < /tr >

    < / table > < table >

    < td >

    < br / >

    < span class = "radioRequiredMsg" > please make a selection. </span > < / span > < br / >

    </span > < table >

    < /tr >

    < b >

    < td > < table >

    < td colspan = "4" class = "name-wine-five" >-South Island

    < table width = "58" border = "0" align = "right" >

    < b >

    < td width = "35" valign = "middle" > < span class = 'amount' > $ 15.00 </span > < table >

    < /tr >

    < / table > < table >

    < td > < input name = "PROD_FreightCases_15" type = "text" onchange = "CalculateTotal (this.form)" size = "1" maxlength = "1" / > < table > "

    < /tr >

    < class = "table-row" tr >

    < td colspan = "6" > < span class = "Texteencassemelangee-order" >-Collection of vineyards by setting </span > < span class = "free" >

    North: < input type = "radio" value = "10" name = 'call' > < br / >

    South: < input type = "radio" value = "15" name = 'call' > < br / >

    Pick up: < input type = "radio" value = "0" name = 'call' > < br / >

    < td width = "26" >

    < table > < / span >

    < /tr >

    < /table >

    < p align = "right" >

    < p align = "right" >

    < p align = "right" >

    < input name = "Submit" type = 'submit' class = "submit-button" id = 'Submit' style = "" width: 120px; "value ="Submit order"reset >"

    < / make >

    < div id = 'order-total-wrapper' >

    < div class = "order-total-text" style = "text-align: right" >

    < div align = "left" class = "order-total-text-1" > Total: < / div >

    < / div >

    < div class = 'order-total-text-2' id = 'order_total' style = "text-align: right" > $ 0.00 < / div >

    < div id = "total due" > Total amount payable < br / > < br / >

    < div id = "conformation-text" > when you click 'Send' a confirmation email will also be sent to your Inbox < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    < / div >

    < div id = 'foot of page-links' >

    < a href = "site - map.html" class = "HR-green-border" > < /a > site map

    < a href = "contact - us.html" class = "HR-green-border" > online < /a >

    < a href = "contact - us.html" class = "HR-green-border" > contact us < /a >

    " < a href =" http://www.loudmouse.co.nz/ "target ="_new"> & copy;" loudmouse design Ltd. 2012 < /a > < / div >

    < script src = "js/wineorder.js" > < / script >

    < script >

    jQuery (function ($) {}

    $('#order').validate ();

    });

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1", "none");

    < /script >

    < script type = "text/javascript" >

    ac1 var = new Spry.Widget.ValidationRadio ("RadioGroup1" {isRequired:true, minSelections:1, maxSelections:1, validateOn:['blur','change']});})

    var spryradio2 = new Spry.Widget.ValidationRadio ("spryradio2");

    < /script >

    < / body >

    < / html >

    PHP;

    <? PHP

    $errors = ";

    $myemail = ' [email protected] '; / / <-put your e-mail address here.

    If (Empty($_POST['name']) |)

    Empty($_POST['email']) |

    Empty($_POST['address']))

    {

    }

    $name = $_POST ['name'];

    $email_address = $_POST ['email'];

    $phone = $_POST ['phone'];

    $address = $_POST ['address'];

    $addresstwo = $_POST ['addresstwo'];

    $addressthree = $_POST ['addressthree'];

    $wine1 = $_POST ['vitivinicole1'];

    $wine2 = $_POST ['wine2"];

    $wine3 = $_POST ['wine3"];

    $wine4 = $_POST ['wine4'];

    $wine5 = $_POST ['wine5"];

    $chardonnay_2011_bottles = $_POST ['PROD_Chardonnay2011Bottles_20'];

    $chardonnay_2011_cases = $_POST ['PROD_Chardonnay2011Cases_204'];

    $pino_gris_2011_bottles = $_POST ['PROD_PinoGris2011Bottles_21'];

    $pino_gris_2011_cases = $_POST ['PROD_PinoGris2011Cases_228'];

    $sauvigon_blanc_2011_bottles = $_POST ['PROD_SauvigonBlanc2011Bottles_20'];

    $sauvigon_blanc_2011_cases = $_POST ['PROD_SauvigonBlanc2011Cases_204'];

    $riesling_2012_bottles = $_POST ['PROD_Riesling2012Bottles_20'];

    $riesling_2012_cases = $_POST ['PROD_Riesling2012Cases_204'];

    $pinot_noir_2009_bottles = $_POST ['PROD_PinotNoir2009Bottles_25'];

    $pinot_noir_2009_cases = $_POST ['PROD_PinotNoir2009Cases_250'];

    $message = $_POST ['message'];

    $call = $_POST ['call'];

    $totalcost = ($chardonnay_2011_bottles * 20 + $chardonnay_2011_cases * 204) + ($pino_gris_2011_bottles * 21 + $pino_gris_2011_cases * 228) + ($sauvigon_blanc_2011_bottles * 20 + $sauvigon_blanc_2011_cases * 204) + ($riesling_2012_bottles * 20 + $riesling_2012_cases * 204) + ($pinot_noir_2009_bottles * 25 + $pinot_noir_2009_cases * 250) + ($call * 10 + $call * 15 + $call * 0);

    $reply = $_POST ['email'];

    $replysubject = ' auto response: of Hamden real estate Web site. "

    $replyfrom = "from: ". " [email protected] \r\n";

    $replymessage = "Dear". $_POST ['name']. "" \r\n\r\n ";

    $replymessage. = "Thank you for ordering at Hamden vineyard. We will contact you shortly with a reference number and payment details...\r\n\r\n ";

    $replymessage. = « » ;

    $replymessage. = "YOUR ORDER DETAILS: \r\n\r\n";

    $replymessage. = "selection of wines: $wine1\r\n";

    $replymessage. = ' bottles: $chardonnay_2011_bottles\r\n ";

    $replymessage. = ' case: $chardonnay_2011_cases\r\n\r\n ";

    $replymessage. = "selection of wines: $wine2\r\n";

    $replymessage. = ' bottles: $pino_gris_2011_bottles\r\n ";

    $replymessage. = ' case: $pino_gris_2011_cases\r\n\r\n ";

    $replymessage. = "selection of wines: $wine3\r\n";

    $replymessage. = ' bottles: $sauvigon_blanc_2011_bottles\r\n ";

    $replymessage. = ' case: $sauvigon_blanc_2011_cases\r\n\r\n ";

    $replymessage. = "selection of wines: $wine4\r\n";

    $replymessage. = ' bottles: $riesling_2012_bottles\r\n ";

    $replymessage. = ' case: $riesling_2012_cases\r\n\r\n ";

    $replymessage. = "selection of wines: $wine5\r\n";

    $replymessage. = ' bottles: $pinot_noir_2009_bottles\r\n ";

    $replymessage. = ' case: $pinot_noir_2009_cases\r\n\r\n ";

    $replymessage. = "cargo: $call";

    $replymessage. = "Total $ $totalcost\r\n\r\n";

    $replymessage. = "people in Hamden Estate\r\n";

    $replymessage. = " " " [email protected] \r\n";

    $replymessage. = " " \r\n\r\n http://www.hamdenestate.co.nz ";

    $replymessage. = "this email is automated, so please NO reply.\r\n;

    If (! preg_match ())

    « / ^ [_a-z0 - 9-] + (\. [_a-z0-9-]+)*@[a-z0-9-]+ (-.)] [ a-z0 - 9-] +) * (\. [a - z] {2, 3}) / $i »,

    $email_address))

    {

    $errors. = "\n error: invalid email address ';

    }

    If (empty ($errors))

    {

    $to = $myemail;

    $email_subject = "sending the contact form: $name;

    $email_body = "you have received an online order through your Web site. Here are the details: ".."

    "\n name: $name"

    \n email: $email_address

    \n phone: $phone

    \n address: $address

    \n address: $addresstwo

    \n address: $addressthree

    \n wine Selection: $wine1

    \n bottles: $chardonnay_2011_bottles

    \n case: $chardonnay_2011_cases

    \n wine Selection: $wine2

    \n bottles: $pino_gris_2011_bottles

    \n case: $pino_gris_2011_cases

    \n wine Selection: $wine3

    \n bottles: $sauvigon_blanc_2011_bottles

    \n case: $sauvigon_blanc_2011_cases

    \n wine Selection: $wine4

    \n bottles: $riesling_2012_bottles

    \n case: $riesling_2012_cases

    \n wine Selection: $wine5

    \n bottles: $pinot_noir_2009_bottles

    \n case: $pinot_noir_2009_cases

    \n \n message $message

    call \n \n $call

    collect client \n: \n $value = PROD_0

    "total \n $: $totalcost;

    $headers = "from: $myemail\n";

    $headers. = "reply-To: $email_address";

    mail($to,$email_subject,$email_body,$headers);

    mail ($Reply, $replysubject, $replyMessage, $replyfrom);

    Redirect to the 'Thank you' page $reply = $_POST ['email'];

    Header ('Location: .html contact-form-thank-you ');

    }

    ? >

    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""

    < html >

    < head >

    Contact form < /title > < title > Manager

    < / head >

    < body >

    <! - this page is displayed only if there is an error - >

    <? PHP

    echo nl2br ($errors);

    ? >

    < / body >

    < / html >


    Courier says:

    Hi osgood, please come back, thanks for that suggestion, I think that it is a great way to go about it. The shape is great to work with the calculation, but I still can't run on email response on the site.

    It's what I used the PHP form;

    $freight = $_POST ['PROD_freight_1'];

    $totalcost = ($chardonnay_2011_bottles * 20 + $chardonnay_2011_cases * 204) + ($pino_gris_2011_bottles * 21 + $pino_gris_2011_cases * 228) + ($sauvigon_blanc_2011_bottles * 20 + $sauvigon_blanc_2011_cases * 204) + ($riesling_2012_bottles * 20 + $riesling_2012_cases * 204) + ($pinot_noir_2009_bottles * 25 + $pinot_noir_2009_cases * 250) + ($PROD_freight_1);

    This is the code for the response to the site;

    selection of \n \n $PROD_freight_1

    See you soon

    The variable must be:

    + ($freight);

    and

    selection of \n \n $freight

    Does it work?

  • Problem with "Update file" server behaviors

    I had a small table of data entry (php/mysql) which worked well. This is just a list of organizations that will get an email - Yes or no according to an input froma a checkbox.
    However, I now want to change the recordset to which this information is sent and fail to get the thing to the function.

    The entire page is listed below.

    The error I get when the page should be displayed is:

    Fatal error: Cannot redeclare getsqlvaluestring() (previously declared in C:\wamp\www\mentalhealth\up_content\email_togo.php:3) in C:\wamp\www\mentalhealth\up_content\email_togo.php on line 65

    The code I'm using is:

    <? php require_once('.. /.. / Connections/tormented3.php');? >
    <? PHP
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    $theValue = (! get_magic_quotes_gpc())? addslashes ($TheValue): $theValue;

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }

    $editFormAction = $_SERVER ['PHP_SELF'];
    If (isset {}
    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
    }

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}
    $updateSQL = sprintf ("UPDATE passwords SET send_email = %s organization WHERE = %s",
    GetSQLValueString (isset($_POST['send_email'])? ('true': ' ', 'definition', '1', '0').
    GetSQLValueString ($_POST ["'hiddenField"], "text"));

    @mysql_select_db ($database_tormented3, $tormented3);
    $Result1 = mysql_query ($updateSQL, $tormented3) or die (mysql_error ());
    }

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    $theValue = (! get_magic_quotes_gpc())? addslashes ($TheValue): $theValue;

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }

    $maxRows_rstSix = 500;
    $pageNum_rstSix = 0;
    If (isset($_GET['pageNum_rstSix'])) {}
    $pageNum_rstSix = $_GET ['pageNum_rstSix'];
    }
    $startRow_rstSix = $pageNum_rstSix * $maxRows_rstSix;

    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstSix = "SELECT ck_organisation, ck_anchor, ck_firstname, ck_notes, ck_tosend FROM chk_sixmonth ORDER BY ck_organisation ASC";
    $query_limit_rstSix = sprintf ("%s LIMIT %d, %d", $query_rstSix, $startRow_rstSix, $maxRows_rstSix);
    $rstSix = mysql_query ($query_limit_rstSix, $tormented3) or die (mysql_error ());
    $row_rstSix = mysql_fetch_assoc ($rstSix);

    If (isset($_GET['totalRows_rstSix'])) {}
    $totalRows_rstSix = $_GET ['totalRows_rstSix'];
    } else {}
    $all_rstSix = mysql_query ($query_rstSix);
    $totalRows_rstSix = mysql_num_rows ($all_rstSix);
    }
    $totalPages_rstSix = ceil($totalRows_rstSix/$maxRows_rstSix)-1;

    @mysql_select_db ($database_tormented3, $tormented3);
    $query_rstPass = 'SELECT id, passwords send_email';
    $rstPass = mysql_query ($query_rstPass, $tormented3) or die (mysql_error ());
    $row_rstPass = mysql_fetch_assoc ($rstPass);
    $totalRows_rstPass = mysql_num_rows ($rstPass);
    ? >

    < ! 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 > Send Email? < /title >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"

    < link href = "basics.css" rel = "stylesheet" type = "text/css" / > "
    < script language = "JavaScript" type = "text/javascript" >
    <!--
    function MM_findObj (n, d) {//v4.01
    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}
    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}
    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];
    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);
    If (! x & & d.getElementById) x = d.getElementById (n); Return x;
    }

    function MM_validateForm() {//v4.0
    var i, p, q, n, test, num, min, max, errors = ", args = MM_validateForm.arguments;
    for (i = 0; I <(args.length-2); I += 3) {test = args [i + 2]; val = MM_findObj(args[i]);
    If (val) {n = val.name; if ((val=val.value)! = "") {}}
    If (test.indexOf ('isEmail')! =-1) {p = val.indexOf (' @');}
    If (p < 1 | p ==(val.length-1)) errors +='-' + nm + "must contain an e-mail address. \n » ;
    } Else if (test! = 'R') {num = parseFloat (val);
    If (isNaN (val)) errors +='-' + nm + 'must contain a number. \n » ;
    If (test.indexOf ('inRange')! = - 1) {p = test.indexOf (': ');}
    min = test. Substring(8,p); Max = test. Substring (p + 1);
    If (num < min | max < num) errors +='-' + nm + must contain a number between "+ min +" and "+ max +".. " \n " ;
    }} ElseIf (test.charAt (0) == 'R') errors += '-' + nm + ' is required. \n " ; }
    } If (errors) alert ("the following error occurred: \n'+errors");
    document. MM_returnValue = (error == ");
    }
    ->
    < /script >
    "" < link href = "... / mentalhealth_admin.css" rel = "stylesheet" type = "text/css" / >
    "" < link href = "... / css/mentalhealth_admin.css" rel = "stylesheet" type = "text/css" / >
    < / head >

    < body >
    < table width = "98%" border = "0" cellspacing = "0" cellpadding = "0" >
    < b >
    < td width = "5%" > < a name = 'top' = 'top' id > < /a > < table >
    < td width = "33%" > TorbayMHResources
    < h4 > < / h4 > < table >
    < td width = "62" > organizations on the database: < table >
    < /tr >
    < b >
    < td > < table >
    < td colspan = "2" class = "notbold" > < span class = "notbold" > a b < a href = "#C" > c < /a > < a href = "#D" >, d, e, f < /a > < a href = "#G" > g h I k j < /a > < a href = "#L" > l m n < /a > < a href = "#O" > o p q < /a > < a href = "#R" > < /a > s r < a href = "#T" > t u v w x y z < /a > < / span > < table >
    < /tr >
    < /table >
    < table width = "98%" border = "1" cellspacing = "0" cellpadding = "0" >

    < b >
    < td > < table >
    < td > < table >
    < td colspan = "2" > Email? < table >
    < td > < table >
    < td > < table >
    < /tr >
    <? PHP {? >}
    < b >
    < td width = "4" > <? PHP echo $row_rstSix ["ck_anchor"];? > < table >
    < td width = "22%" > <? PHP echo $row_rstSix ["ck_organisation"];? >
    < table >
    < td width = "4%" class = "style1" > <? PHP

    If (!) ((strcmp($row_rstPass['send_email'],"1")))) {echo 'Yes' ;}
    ? >


    < table >
    < td width = "4" > <? PHP

    If (!) ((strcmp($row_rstPass['send_email'],"0")))) {echo 'No' ;}}
    ? > < table >
    < td width = "10%" >
    < do action = "<?" PHP echo $editFormAction;? ">" name = "form1" id = "form1" method = "POST" >
    < input name = 'send_email' type = "checkbox" id = 'send_email' value = "checkbox" <? PHP if (!) ((strcmp($row_rstPass['send_email'],"1")))) {echo 'checked' ;}? > / >
    < input name = "hiddenField" type = "hidden" value = "<?" PHP echo $row_rstSix ["ck_organisation"];? ">" / >
    < input type = "submit" name = "Submit" value = "Submit" / >
    < input type = "hidden" name = "MM_update" value = "form1" >
    < / make >
    < table >
    < td width = "36%" > <? PHP echo $row_rstSix ["ck_notes"];? > < table >
    < /tr >
    <? PHP} while ($row_rstSix = mysql_fetch_assoc ($rstSix));? >
    < b >
    < td > < table >
    < td > < table >
    < td colspan = "2" > < table >
    < td > < table >
    < td > < table >
    < /tr >
    < b >
    < td > < table >
    < td colspan = "4" > < span class = "notbold" > a and b < a href = "#C" > c < /a > < a href = "#D" >, d, e, f < /a > < a href = "#G" > g h I k j < /a > < a href = "#L" > l m n < /a > < a href = "#O" > o p q < /a > < a href = "#R" > r s < /a > < a href = '# T' > t u v w x y z < /a > < / span > < table >
    < td > < table >
    < /tr >

    < /table >
    < p > < / p >
    < p > < / p >
    < / body >
    < / html >
    <? PHP
    mysql_free_result ($rstSix);
    mysql_free_result ($rstPass);
    ? >

    The code was written in large part by DWMX2004.

    You see where I'm wrong, please?

    smiffy47 wrote:

    The error I get when the page should be displayed is:

    Fatal error: Cannot redeclare getsqlvaluestring() (previously declared in C:\wamp\www\mentalhealth\up_content\email_togo.php:3) in C:\wamp\www\mentalhealth\up_content\email_togo.php on line 65

    The error message said you you can't declare a function definition more than once in a script. For some reason, the GetSQLValueString() was redéclarés on line 65. You must remove the duplicate definition, which looks like this:

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {
    $theValue = (! get_magic_quotes_gpc())? addslashes ($TheValue): $theValue;

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":


    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }

    Remove duplicate section, and your page should work.

  • form validation does not

    Hello

    I've done the validation of the form through behaviors, but it won't someone can take a look and tell me why?  The code is below.

    Thank you

    Natasha

    <? PHP
    / Session Variables * /.
    session_start();
    ob_start();

    If (isset($_POST) & &! empty($_POST))
    {
    / * Include files * /.
    need to 'include/dbase.php;

    $sql = "select * from admin_user ';

    $res = mysql_query ($sql);

    $row = mysql_fetch_array ($res);

    $mailto = "[email protected]";

    $from = $_POST ['email'];

    $mailsubject = "download the Brochure";

    $message = $_POST ["FirstName"]. $_POST ['name']. "were asked to download a \n\n\nForename brochure:". "" $_POST ['name']. ' \nSurname: '. '. $_POST ['name']. "\nTelephone No.:".. " $_POST ['phone']. "\nEmail:".. " $_POST ['email']. "" Cordially, naturalstonecarpet.ie \n ";"


    $headers = "from:". " $from. » \r\n » ;

    $mail = mail ($mailto, $mailsubject, $message, $headers);

    If ($mail)
    {
    $msg = m1;
    }
    on the other
    {
    $msg = m2;
    }


    / * Feature * /.


    $sqlins = "insert into Download_a_Brochure values ('brochure_id', 'name', 'name', 'phone', 'email', 'timestamp') (''.mysql_escape_string($_POST['brochure_id']).'" "," ".mysql_escape_string($_POST['forename'])." "," ".mysql_escape_string($_POST['surname'])." "," ".mysql_escape_string($_POST['phone'])." "," ".mysql_escape_string($_POST['email'])." "', '".date ("Y-m-d ├a"Y-m-d H:i:s")". "") " » ;

    $resins = mysql_query ($sqlins) or die (mysql_error ());
    If ($Resins)
    $msg = 1;
    on the other
    $msg = 2;
    Header ("Location: Download - brochure.php?") MSG = "." $msg);

    "exit";
    }

    ? >
    <! 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 >
    < name meta = "title" content = "carpet - carpet stone natural stone FAQS natural floors, floor coverings, home flooring suppliers, commercial flooring, ' >
    < name meta = "keywords" content = "stone natural floors, flooring providers, home, commercial flooring, carpet stone flooring" >
    < name meta = "description" content = "in natural stones, soil, suppliers of flooring coatings, flooring House, commercial flooring, carpet in Ireland and United Kingdom Pierre" >
    "< meta = name" abstract "content =" Ireland and UK natural stone flooring, suppliers of flooring, home, commercial flooring, carpet stone flooring ">"

    < name meta = "robots" content = "index, follow" >
    < name meta = "author" content = "naturalstonecarpets.ie" >
    "< name meta ="home_url"content ="http://www.naturalstonecarpets.ie">."
    < name meta = 'grading' content = ' stone natural floors, flooring providers, home, commercial flooring, carpet stone flooring ">
    < meta content = "revisit-after" name = "7 days" >
    < meta content = 'language' name = "English" >
    < meta name = "charset" content = "ISO-8859-1" >
    < meta content = 'distribution' name = 'Global' >
    < = happy ' rating' meta name = "Général" >
    < name meta = "expires" content = "Never" >

    < title > Carpet stone - house and Commercial Flooring - FAQ < /title >
    < link href = "nsc - styles.css" rel = "stylesheet" type = "text/css" media = "all" / >
    < link rel = "stylesheet" href = "sIFR - screen.css" type = "text/css" media = "screen" / >
    < link rel = "stylesheet" href = "sIFR - print.css" type = "text/css" media = "print" / >

    < script src = "sifr.js" type = "text/javascript" > < / script > "
    < script src = "sifr - addons.js" type = "text/javascript" > < / script >
    < script src = "sifr - test.js" type = "text/javascript" > < / script >
    < style type = "text/css" >
    <!--
    . Style1 {make-size: 16px}
    ->
    < / style >

    < script type = "text/JavaScript" >
    <!--
    function MM_findObj (n, d) {//v4.01
    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}
    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}
    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];
    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);
    If (! x & & d.getElementById) x = d.getElementById (n); Return x;
    }

    function MM_validateForm() {//v4.0
    var i, p, q, n, test, num, min, max, errors = ", args = MM_validateForm.arguments;
    for (i = 0; I <(args.length-2); I += 3) {test = args [i + 2]; val = MM_findObj(args[i]);
    If (val) {n = val.name; if ((val=val.value)! = "") {}}
    If (test.indexOf ('isEmail')! =-1) {p = val.indexOf (' @');}
    If (p < 1 | p ==(val.length-1)) errors +='-' + nm + "must contain an e-mail address. \n » ;
    } Else if (test! = 'R') {num = parseFloat (val);
    If (isNaN (val)) errors +='-' + nm + 'must contain a number. \n » ;
    If (test.indexOf ('inRange')! = - 1) {p = test.indexOf (': ');}
    min = test. Substring(8,p); Max = test. Substring (p + 1);
    If (num < min | max < num) errors +='-' + nm + must contain a number between "+ min +" and "+ max +".. " \n " ;
    }} ElseIf (test.charAt (0) == 'R') errors += '-' + nm + ' is required. \n " ; }
    } If (errors) alert ("the following error occurred: \n'+errors");
    document. MM_returnValue = (error == ");
    }
    ->
    < /script >
    < / head >
    < body >
    < id of the table = "pagewidth" border = "0" align = "center" cellpadding = "0" cellspacing = "0" >
    < b >
    < td = "header" colspan = "3" id > < div id = "banner" > < img class = "logo" src = "images/nsc - thanks" alt = "Natural stone carpet" / >
    < table width = "200" border = '0' class 'original' = >
    < b >
    < td align = "" > < img src="images/call_us_sample.gif"/ > < table >
    < td > < span class = "style1" > < font = "6px" face = "Times New Roman, Times, serif" size color = "#fffac5" > call < / police > < / span > < table >
    < /tr >
    < b >
    < td colspan = "2" > < span class = "style1" > < font size = "+ 1" color = "#fffac5" face = "Times New Roman, Times, serif" > + 353 1 8900111 < / police > < / span > < table >
    < /tr >
    < / table > < / div > < table >
    < /tr >
    < b >
    < class td = "content" width = "180" valign = "top" > < div id = "nav" >
    < ul >
    < li > < a href = "index.html" > < font color = "#fff3b2" size = "3px" face = "Times Georgia, Times New Roman, serif" > < strong > home < / strong > < / police > < /a > < /li >
    < li > < a href = "about.html" > < font color = "#fff3b2" size = "3px" face = "Times Georgia, Times New Roman, serif" > < strong > carpet of natural stone < facilities > < / police > < /a > < /li > ""
    < li > < a href = "Pierre-carpet - marble.html ' > < font color ="#fff3b2"size ="3px"face ="Times Georgia, Times New Roman, serif"> < strong > < facilities > marble stone mat < / police > < /a > < font color ="#FF0000"> < strong > < em > < img src =" images/newicon.gif"/ > < /em > < / strong > < / police > < /li >"
    < li > < a href = "home - flooring.html" > < font color = "#fff3b2" size = "3px" face = "Times Georgia, Times New Roman, serif" > < floor strong House > < / strong > < / police > < /a > < /li >
    < li > < a href = "commercial - flooring.html ' > < font color ="#fff3b2"size ="3px"face ="Times Georgia, Times New Roman, serif"> < strong Commercial floor > < / strong > < / police > < /a > < /li >
    < li > < a href = "gallery.html" > < font color = "#fff3b2" size = "3px" face = "Times Georgia, Times New Roman, serif" > < strong Gallery > < / strong > < / police > < /a > < /li >
    < li > < a href = "testimonials.html" > < font color = "#fff3b2" size = "3px" face = "Times Georgia, Times New Roman, serif" > < strong > < facilities > customer stories < / police > < /a > < /li > ""
    < li > < a href = "faqs.html" > < font color = "#1fe4e5" size = "3px" face = "Times Georgia, Times New Roman, serif" > < strong > < facilities > FAQS < / font > < /a > < /li >
    < class li = "last" > < a href = "contact.html" > < font color = "#fff3b2" size = "3px" face = "Times Georgia, Times New Roman, serif" > < strong > contact us < facilities > < / police > < /a > < /li >
    < /ul >
    < / div >
    < div class = "left-button" > < a href = "6reasons.html" > < img src = "images/6 - reasons.gif" alt = "5 reasons to choose a natural stone carpet" width = "150" height = "60" / > < / has > < / div > "
    < div class = "left-button" > < a href = "download.html" > < img src = "images/pdf - download.gif" alt = "download a PDF Brochure" width = "150" height = "60" / > < / has > < / div >
    "" < div class = "left-button" > < a href = "http://ie.linkedin.com/in/christopherhyland" > < img src = "images/natural_stone_link_in.gif" border = "0" / > < /a > < / police > < / div > < table >
    < class td = "content" width = "410" valign = "top" >
    < div id = "inside" >
    Download a Brochure of < h1 > < / h1 >
    < img src = "images/shopfloor.jpg" alt = "Detail of a carpet" width = "400" height = "160" / > "
    < p > < table width = "500" border = "0" align = "center" >
    < do action = "<?" PHP echo $_SERVER ['PHP_SELF']? ">" method = "post" >
    < tbody >
    < b >
    < td colspan = "2" align = "center" valign = "top" > < strong >
    <? PHP if ($_GET ['msg'] == "1") {? >}
    "< a href ="http://www.naturalstonecarpets.ie/download.html"target ="_self"class ="style1"> click to download < /a >"
    <? PHP} else if ($_GET ['msg'] == "2") {? >}
    Please enter all the domain and try again.
    <? PHP}? >
    < facilities > < table >
    < /tr >
    < b >
    < td width = "129" align = "right" valign = "top" > < class p 'style43' = > name
    < /p >
    < /p > < table >
    < td width = "261" align = "left" > < input name = "FirstName" onsubmit = "MM_validateForm ('first name',", 'R'); " return document. MM_returnValue"size ="20"/ > < table >
    < /tr >

    < b >
    < td align = "right" valign = "top" > < class p 'style43' = > name </span > < table >
    < td align = "left" > < input name = "name" onsubmit = "MM_validateForm ('name',", 'R'); " return document. MM_returnValue"size ="20"/ > < table >
    < /tr >

    < b >
    < td align = "right" valign = "top" > < class p = "style43" > phone number: < table >
    < td align = "left" > < input name = "phone" onsubmit = "MM_validateForm ('telephone',", 'RisNum'); " return document. MM_returnValue"size ="20"/ > < table >
    < /tr >

    < b >
    < td height = "29" align = "right" valign = "top" > < class = "style43" p > E-mail </span > < table >
    "< td height ="29"align ="left"> < span class ="style35"style =" do-size: 12px ">"
    < input name = "email" onsubmit = "MM_validateForm ('email',", 'RisEmail'); " return document. MM_returnValue"size ="20"/ >
    </span > < table >
    < /tr >

    < b >
    "< height td ="29"colspan ="2"align ="right"class ="style35"style =" font-size: 12px "> < table >"
    < /tr >
    < b >
    "< height td ="29"colspan ="2"align ="right"class ="style35"style =" font-size: 12px "> < span class ="style35"style =" font-size: 12px ">
    < Input value = "Submit" type = "submit" name = "brochure" id = "brochure" / >
    </span > < table >
    < /tr >
    < / tbody >
    < / make >
    < /table >


    < /p >
    < / div >
    < class td = "content" width = "180" valign = "top" >
    < div id = "rightcol" >
    < div class = "law-article" >
    Visit our showroom of the < h3 > < / h3 >
    < p > Natural Stone carpets Ltd, < br / >
    Unit 8, Site 1, < br / >
    Swords Business Park, < br / >
    Swords, < br / >
    Co. Dublin. < /p >
    < img src = "images/arrow-on - white.gif" alt = "#" width = "9" height = "12" / > < a href = "location.html" > display a location map < /a > < / div >
    < div class = "law-article-last" >
    < h3 > how does it work? < / h3 >
    < p > find out the process
    involved in the editing of a natural
    Stone carpet. < /p >
    < img src = "images/arrow-on - white.gif" alt = "#" width = "9" height = "12" / > < a href = "process.html" > The Process < /a > < / div >
    < / div > < table >
    < /tr >
    < b >
    < td = "footer" colspan = "3" id > < ul >
    < li > & copy; Mat 2010 natural stones - stone carpet < /li >
    < li > < a href = "sitemap.html" > < /a > < /li > Site map ""
    < li > < a href = "privacy.html" > < /a > privacy policy < /li > ""
    "< li > Site designed by < a href ="http://www.redsky.ie/"> Red Sky < /a > < /li >".
    < /ul > < table >
    < /tr >
    < /table >


    < script type = "text/javascript" >
    var (("https:" == document.location.protocol) = little? "') https://ssl. ":"http://www. ») ;
    document. Write (unescape ("% 3Cscript src ='" + little + "some google-analytics.com/ga.js type = ' text/javascript' %3E%3C/script%3E"));))
    < /script >
    < script type = "text/javascript" >
    try {}
    var mouseover = _gat._getTracker("UA-4552857-17");
    pageTracker._trackPageview ();
    } catch (err) {} < /script >

    < / body >
    < / html >

    Using the built-in feature, click the button submit to focus on that.  Then, open the tag Inspector and choose validate the form.  Here, you will get a list of all your form fields and validation options.  Just go through each field and define the necessary validations and DW should handle the rest.  It must assign the event of the submit onclick button that activates the action before the form is submitted.  Then you should be good to go.

  • PHP Mail with session variables

    Here is the code for an email to collect page, which sends two session variables (email and postal code) to an email_sub.php page (data are inserted in MySQL). After submitting the form, I get the email_sub.php? page where this code works normally

    <? PHP echo $_SESSION ['email'];? >

    <? PHP echo $_SESSION ['postal code'];? >

    However, when the email is sent, the "subject" and the "To" is successfully sent, but not the variables $email and $zipcode.

    From:
    Zip code:

    If I hard code for values of and Zip, they appear in the email. It seems therefore that session variables are not available at the email_sub.php page.

    If anyone can point me in the right direction for a fix, I'd be very happy to suggestions.

    email_collect.php

    <? php require_once('Connections/connMan.php');? >
    <? PHP
    session_start();
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    $theValue = (! get_magic_quotes_gpc())? addslashes ($TheValue): $theValue;

    Switch ($theType) {}
    case 'text ':
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';
    break;
    case "double":
    $theValue = ($theValue! = "")? « " ». doubleVal ($TheValue). "" "": "NULL";
    break;
    case "date":
    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";
    break;
    case "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }

    $editFormAction = $_SERVER ['PHP_SELF'];
    If (isset {}
    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == "form1")) {}
    $email = $HTTP_POST_VARS ['email'];
    session_register ("email");
    $zipcode = $HTTP_POST_VARS ["zipcode"];
    session_register ("zipcode");
    $insertSQL = sprintf ("INSERT INTO email_list (e-mail, postal code) VALUES (%s, %s)," ")
    GetSQLValueString ($_POST ['email'], "text").
    GetSQLValueString ($_POST ['PostalCode'], "int"));

    @mysql_select_db ($database_connMan, $connMan);
    $Result1 = mysql_query ($insertSQL, $connMan) or die (mysql_error ());

    $insertGoTo = "email_sub.php";
    If (isset {}
    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;
    $insertGoTo. = $_SERVER ['QUERY_STRING'];
    }
    header (sprintf ("location: %s", $insertGoTo));
    }

    @mysql_select_db ($database_connMan, $connMan);
    $query_rsEmailer = "SELECT * from email_list";
    $rsEmailer = mysql_query ($query_rsEmailer, $connMan) or die (mysql_error ());
    $row_rsEmailer = mysql_fetch_assoc ($rsEmailer);
    $totalRows_rsEmailer = mysql_num_rows ($rsEmailer);
    ? >
    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""
    < html >
    < head >
    < title > em touch all the Camps of Baseball < /title >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"
    < link href = "assets/taylor.css" rel = "stylesheet" type = "text/css" > "
    < script type = "text/JavaScript" >
    <!--
    function MM_findObj (n, d) {//v4.01
    var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}
    d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}
    If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];
    for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);
    If (! x & & d.getElementById) x = d.getElementById (n); Return x;
    }

    function MM_validateForm() {//v4.0
    var i, p, q, n, test, num, min, max, errors = ", args = MM_validateForm.arguments;
    for (i = 0; I <(args.length-2); I += 3) {test = args [i + 2]; val = MM_findObj(args[i]);
    If (val) {n = val.name; if ((val=val.value)! = "") {}}
    If (test.indexOf ('isEmail')! =-1) {p = val.indexOf (' @');}
    If (p < 1 | p ==(val.length-1)) errors +='-' + nm + "must contain an e-mail address. \n » ;
    } Else if (test! = 'R') {num = parseFloat (val);
    If (isNaN (val)) errors +='-' + nm + 'must contain a number. \n » ;
    If (test.indexOf ('inRange')! = - 1) {p = test.indexOf (': ');}
    min = test. Substring(8,p); Max = test. Substring (p + 1);
    If (num < min | max < num) errors +='-' + nm + must contain a number between "+ min +" and "+ max +".. " \n " ;
    }} ElseIf (test.charAt (0) == 'R') errors += '-' + nm + ' is required. \n " ; }
    } If (errors) alert ("the following error occurred: \n'+errors");
    document. MM_returnValue = (error == ");
    }
    ->
    < /script >
    < / head >

    < body >
    < are method = "post" name = "form1" action = "<?" PHP echo $editFormAction;? > ">"
    < table width = "325" align = "center" >
    < tr valign = 'of basic">
    < td colspan = "2" align = "left" >
    < h1 class = "subtitle" > join our Email list < / h1 >
    < p > please fill in boxes and click on & quot; Send. & quot; This information is kept secret and is intended for the exclusive touch of < strong > Hank Manning em all Camps of Baseball < facilities > in order to send you the latest happenings on our calendar.
    < /p >

    < p > < / p >
    < table >
    < /tr >
    < tr valign = 'of basic">
    < td align = "right" valign = "middle" nowrap > < p > E-mail: < /p > < table >
    < td align = "left" valign = "middle" > < input name = "email" type = "text" onBlur = "MM_validateForm ('email',", 'RisEmail'); " return document. MM_returnValue"size ="32"value ="Email address"> < table >
    < /tr >
    < tr valign = 'of basic">
    < td align = "right" valign = "middle" nowrap > < p > code postal: < /p > < table >
    < td align = "left" valign = "middle" > < input name = "PostalCode" type = "text" onBlur = "MM_validateForm ('postcode',", 'RisNum'); " return document. MM_returnValue' size = '32' value = 'postal Code' > < table >
    < /tr >
    < tr valign = 'of basic">
    < td align = "right" > < input type = "reset" name = "Reset2" value = "Reset" > < br >
    < input type = "submit" value = "send" > < table > ' "
    < td > < table >
    < /tr >
    < /table >
    < input type = "hidden" name = "MM_insert" value = "form1" >
    < / make >
    < p > < / p >
    < / body >
    < / html >
    <? PHP
    mysql_free_result() will free all memory associated with the result identifier result.

    mysql_free_result() only needs to be called if you are concerned about how much memory is used for queries that return large result sets. All associated result memory is automatically freed when the script is completed.
    mysql_free_result ($rsEmailer);
    ? >

    email_sub.php

    <? PHP session_start(); It connects to the existing session

    email sent

    / / [email protected] , [email protected]
    mail (' [email protected], [email protected]', "Join Email List", "from: $email\r\n Zip: $zipcode");
    ? >
    < ! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional / / IN" "http://www.w3.org/TR/html4/loose.dtd" > ""
    < html >
    < head >
    < title > em touch all the Camps of Baseball < /title >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"
    < link href = "assets/taylor.css" rel = "stylesheet" type = "text/css" > "
    < / head >

    < body >


    < table width = "280" border = "0" cellspacing = "0" cellpadding = "0" >
    < b >
    < td colspan = "2" > < img src = "images/manning_logo.jpg" width = "426" height = "64" > < table > "
    < /tr >
    < tr valign = "top" >
    < td colspan = "2" > < p > < / p >
    < p align = "left" > thank you very much for sending your email and zip code. < /p >
    < table width = "350" border = "0" cellspacing = "0" cellpadding = "0" >
    < b >
    < td width = "69" > < p align = "right" > email: < /p > < table >
    < td width = "281" > < p align = "left" > <? PHP echo $_SESSION ['email'];? > < / p > < table >
    < /tr >
    < b >
    < td > < p align = 'right' > postal code: < /p > < table >
    < td > < p align = "left" > <? PHP echo $_SESSION ['postal code'];? > < / p > < table >
    < /tr >
    < / table > < p align = "left" > This information will be stored in our database exclusive use < facilities > < strong > Hank Manning em all the Baseball Camps Touch, which respects and protects your privacy. < /p >
    < table >
    < /tr >
    < b >
    < td width = "407" align = "left" > < a href = "javascript:window.close();" "> close this window < /a > < table >
    < td width = "19" > < p > < / p > < table >
    < /tr >
    < /table >
    < p > < / p >
    < p > < / p >
    <? PHP
    end the session so that I could see new variables because they are passed in the development
    session_destroy();? >
    < / body >
    < / html >

    sbudlong wrote:

    I made the change you suggested but the showsFrom:Zip still E-mail: without values for the variables. Is there a problem with the session?

    It seems that you do not use session variables when you send the mail:

    mail('[email protected], [email protected]',
    'Join Email List',
    "From: $email\r\n Zip: $zipcode");
    

    Change to this:

    mail('[email protected], [email protected]',
    'Join Email List',
    'From: ' . $_SESSION['email'] . "\r\n Zip: " .
    $_SESSION['zipcode']);
    

Maybe you are looking for