"HP34970A Conf Resistance.vi" causes error message -113

I'm using Labview 6.1 to read voltage, frequency, resistance and temperature readings from an HP34970A (with 34902A 16-channel multiplexer).
Every time the "HP34970A Conf Resistance.vi" is completed it causes the HP34970A to display error -113: "Undefined header. A command was received that is not valid for this instrument. You may have misspelled the command or it may not be a valid command. If you are using the shortened form of this command, remember that it may contain up to four letters. Or you may have inserted an extra colon where one is not required.".
The only thing the vi is supposed to do, is to enable the offset compensation, which it is doing (I tested that with a separate program).
Although t
here is no help file with the NI drivers for the instrument and I'm new to Labview, I would like to know if someone found a workaround for this. It is kind of annoying because the error message is accompanied with a beep of the instrument every 3s.
Thanks.

Thanks for your fast response.
I'm using the latest version of the drivers (I installed everything in the begining of Mai).
I wrote a small vi for NI Spy, just a simple 4 wire resistor measurement with "Conf Resistance.vi" at the beginning.
Unfortunately it is my first time working with LabVIEW and the VISA language, and the syntax looks correct for me. ( But I still get the -113 error.)
Here the processed commands (1 loop):
1. viGetAttribute (0x0015B920,0x3FFF018F,VI_FALSE)
Process ID: 0x0000033C Thread ID: 0x0000041C
Start Time: 14:52:09.127 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
2. viGetAttribute (0x0015B920,0x3FFF018F,VI_FALSE)
Process ID: 0x0000033C Thread ID: 0x0000041C
Start Time: 14:52:09.127 Call Duration: 00:00:00.010
Status: 0 (VI_SUCCESS)
3. viGetAttribute (0x0015B920,0x3FFF018F,VI_FALSE)
Process ID: 0x0000033C Thread ID: 0x0000041C
Start Time: 14:52:09.157 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
4. viGetAttribute (0x0015B920,0x3FFF018F,VI_FALSE)
Process ID: 0x0000033C Thread ID: 0x0000041C
Start Time: 14:52:09.157 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
5. viOpen (0x0015B920,"COM1",0 (0x0),0 (0x0),0x0017CC30)
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.469 Call Duration: 00:00:00.010
Status: 0 (VI_SUCCESS)
6. viGetAttribute (0x0017CC30,0x3FFF0171,4 (0x4))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.479 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
7. viGetAttribute (0x0017CC30,0x3FFF0171,4 (0x4))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.479 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
8. viSetAttribute (0x0017CC30,0x3FFF001A,10000 (0x2710))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.479 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
9. viSetAttribute (0x0017CC30,0x3FFF0021,57600 (0xE100))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.479 Call Duration: 00:00:00.010
Status: 0 (VI_SUCCESS)
10. viSetAttribute (0x0017CC30,0x3FFF0025,1 (0x1))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.489 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
11. viWrite (0x0017CC30,"*RST.",5 (0x5),5 (0x5))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.489 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
12. viWrite (0x0017CC30,"SYSTRES.",10 (0xA),10 (0xA))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.489 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
13. viWrite (0x0017CC30,"*IDN?.",6 (0x6),6 (0x6))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.489 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
14. viRead (0x0017CC30,"HEWLETT-PACKARD,34970...",50 (0x32),32 (0x20))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.489 Call Duration: 00:00:00.370
Status: 0 (VI_SUCCESS)
15. viWrite (0x0017CC30,"*RST.",5 (0x5),5 (0x5))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.859 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
16. viWrite (0x0017CC30,"SYSTRES.",10 (0xA),10 (0xA))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:17.859 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
17. viWrite (0x0017CC30,"FUNC "RES", (@);EN...",122 (0x7A),122 (0x7A))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:18.781 Call Duration: 00:00:00.020
Status: 0 (VI_SUCCESS)
18. viWrite (0x0017CC30,"MEAS:FRES? AUTO, (@101).",24 (0x18),24 (0x18))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:19.742 Call Duration: 00:00:00.010
Status: 0 (VI_SUCCESS)
19. viSetAttribute (0x0017CC30,0x3FFF001A,320000 (0x4E200))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:19.752 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
20. viRead (0x0017CC30,"+1.08185990E+02..",500 (0x1F4),17 (0x11))
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:19.752 Call Duration: 00:00:00.130
Status: 0 (VI_SUCCESS)
21. viClose (0x0017CC30)
Process ID: 0x0000033C Thread ID: 0x0000042C
Start Time: 14:52:21.214 Call Duration: 00:00:00.000
Status: 0 (VI_SUCCESS)
Thanks,
Dirk

Similar Messages

  • Did recent recommended update cause incompatibility with HP printer, causing error message and printer to print blank pages?

    did recent recommended update cause incompatibility with HP printer, causing error message and printer to print blank pages?

    Why not contact HP tech support for assistance since they make the printer. While on their site you can look for an updated printer driver. Otherwise, try deleting the current installed driver, reset the print system, then reinstall your printer's driver.
    Mac OS X- How to reset the printing system

  • Drive restriction group policy causes error message when accessing Open and Save As Dialog Boxes on Windows 8.1

    We are running Windows 8.1 Pro x86
    I am really curious as to why the drive restriction group policy causes the error message to pop up:
    "This operation has been cancelled due to restrictions in effect on this computer. Please contact your system administrator."
    It does not prevent from actual saving so functionality is not lost but it really annoys our end users and we're getting a lot of complaints. We cannot use the workaround of hiding drives instead of restricting as this still presents security issues. This
    is happens when saving (or clicking on a button like "Browse" that opens the 'Open' dialogue box) in all Office 2013 applications, Internet Explorer, Paint, Notepad, and probably most others. I've looked at many forums and no suggestions for workarounds
    have succeeded for us to get rid of this error message and in fact, I read a post that stated that someone contacted Microsoft and they said this was by design and there is no workaround. I find this very unfortunate that we either have the choice of compromising
    security or annoying our end users. It seems to me like the new dialogue box in Windows 8.1 (and maybe 8?) attempts to access the local drive under the logged in user's account before it actually opens up the dialogue box which conflicts with the group policy
    that restricts access to the drive.
    Has anyone at all had any luck getting this to go away without removing the restrictions? It seems like the answer is either buried in the Windows code or somewhere in the registry.
    Thank you in advance for your time!

    Thank you for your time and response! Unfortunately, we have the machine locked down pretty tight (they are public use computers that require heavy restriction) and it is set to restrict all drives so access is limited to the local profile. We did try
    testing your method, however, by adding the Desktop as an allowed location in the Office policy (which would not solve the issue for the other applications but was good for a test) using the path %userprofile%\desktop. When choosing that location, it does
    not throw the error but unfortunately, it does not remember like it did for your with the E: drive so it still always throws the error when first loading the dialogue box no matter what I do. If you're able to confirm that this is simply by design and we're
    just expected to inform our users to click through the errors, then I guess that's the accepted answer. Although, do you think that there might be a registry key value that is set after you save to the E: drive for the first time? Maybe we could set that value
    to %userprofile%\desktop if it's doing the redirection after the first save through registry. Thanks again!

  • Time machine causes error message " Disk not properly ejected" with USB backup drive

    I am using iMac OS X Lion and Time Machine causes the error message with a WD 1.5 TB drive in aThermaltake dock, USB.  every time I wake up the computer....  Ejection of Time Machine and shut it down and turn opp power to drive causes the error message problem to disappear.   What is the solutin?

    If it were mine I would replace the drive with another brand. WD drives EHD's tend to have more issues than any other EHD. If you want to continue using it you can try resetting the SMC (may take 2-3 tries) and/or restarting in Safe Mode to reset some caches, it's possible one or more has become corrupt.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Press and hold the power button for 5 seconds.
    Release the power button.
    Attach the computers power cable.
    Press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • Adobe updates: I've gotten error messages when trying to download pdfs (very annoying). Read somewhere that mac os has problems with the adobe extensions, thus, causing error messages from adobe. I ignore the updates. Should I?

    Hi All,
    I have stopped updating adobe software b/c I read that the adobe update software inserts extensions into the mac software system, causing annoying/time consuming error messages when downloading new pdfs. I get adobe update notices 2-3x/week. What do you recommend? I use an iMac OS 10.94.
    thanks for your help.

    Preview will do all that and is part of the OS.
    Mac Basics: Preview app views and edits PDFs and images
    With Adobe, if it's working, then it should be fine. See here
    http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Macintosh

  • UMFactory.getRoleFactory().getMutableRole(roleid) causing error message

    Hi Experts,
    I am getting following error message. Can you please help me in resolving the issue. The message is being thrown by
         } catch (UMException e) {
                   wdComponentAPI.getMessageManager().reportException(
                        "Error getting role: " + e.getLocalizedMessage(),
                        false);
    Regards,
    Gary
    Error getting role: Batch rolled back. Caused by java.sql.BatchUpdateException: ORA-00001: unique constraint (SAPSR3DB.SYS_C006225) violated at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10768) at
    Portion of code is:
              try {
                   String roleid1 =
                        (UMFactory
                             .getRoleFactory()
                             .getRoleByUniqueName(
                                  wdContext.currentContextElement().getNewRole()))
                             .getUniqueID();
                   IRole role1 = null;
                   role1 = UMFactory.getRoleFactory().getMutableRole(roleid1);
                   String roleid2 =
                        (UMFactory
                             .getRoleFactory()
                             .getRoleByUniqueName(
                                  wdContext.currentContextElement().getOldRole()))
                             .getUniqueID();
                   IRole role2 = null;
                   role2 = UMFactory.getRoleFactory().getMutableRole(roleid2);
                   //   end of code -- updateable role ... the catch block is in the last section
                   // for finding the all users of ep
                   IUserFactory userFact = UMFactory.getUserFactory();
                   try
                   wdComponentAPI.getMessageManager().reportSuccess(
                        "No of users for which program tried to reassign the role :"
                             + gtot_users);
                   wdComponentAPI.getMessageManager().reportSuccess(
                        "No of users for which role got reassigned :" + gsucc_users);
                   wdComponentAPI.getMessageManager().reportSuccess(
                        "No of users for which role could NOT got reassigned :"
                             + gunsucc_users);
                   // the following try catch statement is the closing statement for the updattable role
                   role1.save();
                   role1.commit();
                   role2.save();
                   role2.commit();
                   Timestamp bstamp =
                        new Timestamp(Calendar.getInstance().getTimeInMillis());
                   wdContext.currentContextElement().setEndTime(bstamp);
                   wdComponentAPI.getMessageManager().reportSuccess(
                        "Process completed successfully");
              } catch (UMException e) {
                   wdComponentAPI.getMessageManager().reportException(
                        "Error getting role: " + e.getLocalizedMessage(),
                        false);

    Hi,
    Found the solution on my own. My program was trying to assign role a to user xyz. user xyz was already assigned role a. So, I was getting the error.
    I modified my program. I created one condition which prohibited to assign the role which was already assigned to the user.

  • Firefox 20.0 causes error message with my site

    My company has a support portal for our customers. The portal requires a log in then the user is taken to a frames based page which has a menu bar in the top frame and a resource (e.g. Knowledge Base, Report an Incident) in the lower frame. Firefox 20.0 causes the lower frame to display the server error message "Error Code: 500 Internal Server Error. The pipe is being closed. (232) ". The web site is running IIS 6.0. Earlier version of Firefox work fine as do the latest version on Chrome and IE 9.

    Reload the webpage while bypassing the cache using '''one''' of the following steps:
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    OR
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Let us know if this solves the issues you are having.
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    could you provide your website address

  • Creating a Credit Memo in AR and Saving Causes Error Message

    Hi to All,
    When attempting to save a Credit Memo in AR, we get a generic error message: "An unexpected error has occurred. Please contact your system administrator" in credit transaction form.
    Ran a Diag on the AR transaction and we show no errors.
    Looking for additional assistance on how to resolve.

    FYI, Issue has been resolved via running Debug using the following
    Set profile
    * FND: Debug Log Enabled : Yes
    * FND: Debug Log Level : Statement
    * FND: Log Module : %
    Get the current log sequence in the FND table.
    select max(log_sequence) from fnd_log_messages ; -- start
    Run sequence to generate error
    Get the log sequence in the FND table after error
    select max(log_sequence) from fnd_log_messages ; -- end
    Get the FND log data
    select * from fnd_log_messages where log_sequence between <start> and <end>;
    Once getting the sequence, you can preform update on the column need.

  • ITunes update causing error messages

    Hi all.
    This is my first time posting, please forgive any faux pas.
    I installed the new update from itunes.
    It would not install and told me there was a problem, but i did not write down the problem. I restarted the computer in the hope i could fix it with a tweak.
    However i then received the APSDaemon.exe System error.  The programme can't start because MSVCR80.dll is missing from the computer. Try reinstalling the programme to fix this problem.
    I uninstalled iTunes, tried reinstalling but keep getting  a message to check my privileges.
    I have done a sfc/scannow, in command prompt in safe mode and normal mode, which is not showing any problems.
    Used the MS fixit tool to completely uninstall iTunes, tried reinstalling, still the same message.
    i seem to have followed all the advice advertised under the APSDaemon.exe. error messages.
    Restarted, 4 more attempts and installing with the admin message. I am using the admin account to do all of this in.
    It has now been 3 days since it happened and i still cannot find a cure.
    I have had suggestions to plug my phone into the pc in the hope it may resolve the issue, but i am worried in case it mucks up the phone as well.
    There seem to be a lot of people who have suffered the problem but most of the recommended actions have not helped resolve my issue.
    ( it could be me i guess).
    Thanks for any help offered.

    Me again.
    I have spent all day working on this problem.
    I have finally fixed it by myself!!
    As no one responded to my plight, and in case anyone else has the same problem, here is how (i think) i sorted it.
    The only way that i could reinstall iTunes successfully was to go into the control panel and under publisher uninstall each and every item that had an Apple inc. name by it.
    After reinstalling it, i had to then download quicktime etc and reinstall that too.
    Hopefully when i restart the computer all will be ok.
    If not i will be back.
    Thanks anyway

  • Apple TV update causing error message.

    I recently did an update on my Apple TV and after performing it I'm now getting an error message that my HDMI cable needs to be connected to a HDCP port (which I presume my TV doesn't have). I can no longer watch anything on iTunes or netflix. How do I fix this?

    Welcome to the Apple Community.
    Check that the HDMI cable is correctly seated at both ends.
    Try disconnecting the cable and connecting it again.
    Try another cable.
    Try restarting the Apple TV
    Try the Apple TV with another TV

  • PHP Form causing error message

    Hi,
    I am trying to create a page whereby users can fill in their details so I can transfer them into a business card. It's basically just a slightly modified version of my Contact form, which works fine. Yet for some reason it's spitting out this error message:
    "Warning: Invalid argument supplied for foreach() in /home/reasona2/public_html/business_cards/pages/businesscard.php on line 17 
    Warning: Cannot modify header information - headers already sent by (output started at /home/reasona2/public_html/business_cards/pages/businesscard.php:17) in /home/reasona2/public_html/business_cards/pages/businesscard.php on line 29" 
    I'm using the following HTML: 
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Business Cards</title>
    <link href="rpw1.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    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])&&d.all) 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_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <form action="businesscard.php" method="post">
    </head> 
    <body onload="MM_preloadImages('buttons/home2.png','buttons/services2.png','buttons/prices2.png ','buttons/examples2.png','buttons/contact2.png','business_cards/classic_contemporary_whit e.jpg','business_cards/classic_contemporary_black.jpg','business_cards/classic_contemporar y_cream.jpg')">
    <div id="header"><img src="header_background.png" width="850" height="27" /></div>
    <div id="wrapper">
      <div id="banner">
        <div id="phone">
          <p class="bold_centre">Call us now on:</p>
          <p><img src="phone.png" width="16" height="13" /> 0845 567 413</p>
        </div>
      </div>
      <div id="menu"><a href="home.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Home','','buttons/home2.png',1)"><img src="buttons/home.png" name="Home" width="116" height="40" border="0" id="Home" /></a><a href="services.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Services','','buttons/services2.png',1)"><img src="buttons/services.png" name="Services" width="116" height="40" border="0" id="Services" /></a><a href="prices.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Prices','','buttons/prices2.png',1)"><img src="buttons/prices.png" name="Prices" width="116" height="40" border="0" id="Prices" /></a><a href="examples.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Examples','','buttons/examples2.png',1)"><img src="buttons/examples.png" name="Examples" width="116" height="40" border="0" id="Examples" /></a><a href="jobs.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Jobs','','buttons/jobs2.png',0)"><img src="buttons/jobs.png" name="Jobs" width="116" height="40" border="0" id="Jobs" /></a><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Contact','','buttons/contact2.png',1)"><img src="buttons/contact.png" name="Contact" width="116" height="40" border="0" id="Contact" /></a>
    <p> </p>
      </div>
      <div id="main">
        <div id="page_header">
        <h2>Classic: Contemporary</h2>
        </div>
        <div id="card_gallery_div">
          <div id="card_main"><img src="business_cards/classic_contemporary_white.jpg" name="card_large" width="378" height="529" id="card_large" /></div>
          <div id="card_description">
            <p>Description of card to go here</p>
          </div>
          <div id="card_choices">
            <form action="" method="post" enctype="multipart/form-data" name="form2" id="form2">
              <p>Please choose from the following colour options:
                <br />
              </p>
              <p> </p>
              <p><img src="business_cards/colour_blocks/white.jpg" alt="" name="block1" width="40" height="40" id="block1" />
                <input name="radio" type="radio" id="white" onclick="MM_swapImage('card_large','','business_cards/classic_contemporary_white.jpg',1)" value="white" checked="checked" />
                White  <img src="business_cards/colour_blocks/black.jpg" alt="" name="block2" width="40" height="40" id="block2" />
                <input name="radio" type="radio" id="black" onclick="MM_swapImage('card_large','','business_cards/classic_contemporary_black.jpg',1)" value="black" />
                Black  <img src="business_cards/colour_blocks/cream.jpg" alt="" name="block3" width="40" height="40" id="block3" />
                <input name="radio" type="radio" id="cream" onclick="MM_swapImage('card_large','','business_cards/classic_contemporary_cream.jpg',1)" value="cream" />
              Cream</p>
              <p> </p>
    <p>Please provide the following information as you would like it to appear on your new Business Cards:</p>
              <p> </p>
              <p>Name:</p>
              <p>
                <input name="name" type="text" id="name" size="45" />
              </p>
              <p> </p>
              <p>Job Title:</p>
              <p>
                <input name="job" type="text" id="job" size="45" />
              </p>
              <p> </p>
              <p>Tel No:</p>
              <p>
                <input name="phone" type="text" id="phone2" size="45" />
              </p>
              <p> </p>
              <p>Mobile No:</p>
              <p>
                <input name="mobile" type="text" id="mobile" size="45" />
              </p>
              <p> </p>
              <p>Email:</p>
              <p>
                <input name="email" type="text" id="email" size="45" />
              </p>
              <p> </p>
              <p>Website:</p>
              <p>
                <input name="website" type="text" id="website" size="45" />
              </p>
              <p> </p>
              <p>Upload Logo: </p>
              <p>(Please ensure all files are minimum 150dpi)</p>
              <p>
                <input name="file" type="file" id="file" />
              </p>
              <p>           </p>
              <p>
                <input type="submit" name="submit" id="submit" value="Submit" />
              </p>
            </form> 
    With the following PHP script: 
    <?php
    if(isset($_POST['submit'])) { 
    $to = "[email protected]";
    $subject = "Business Card Order";
    $method = $_POST['radio'];
    $name_field = $_POST['name'];
    $job_field = $_POST['job'];
    $phone_field = $_POST['phone'];
    $mob_field = $_POST['mobile'];
    $email_field = $_POST['email'];
    $web_field = $_POST['website'];
    $address_field = $_POST['address']; 
    foreach($_POST['check'] as $value) { 
    $check_msg .= "\n$value\n"; 
    $body = "Business Card Colour: $method\n\n Name: $name_field\n\n Job Title: $job_field\n\n Phone: $phone_field\n\n Mobile: $mob_field\n\n E-Mail: $email_field\n\n Website: $web_field\n\n Address: $address_field "; 
    $header="From: $email_field\r\n"; 
    mail($to, $subject, $body,$header); 
    header("Location: businesscard_thanks.html"); 
    } else { 
    echo "blarg!"; 
    ?> 
    Can anyone help fix the PHP so the error message goes away? 
    I'd also like to include an option for users to upload a file so they can supply a logo if they want to. I've already got the HTML side of that sorted, but can anybody advise what to do with the PHP? 
    Thanks very much in advance! 
    Oli Corse

    The error message is pretty clear:
    Warning: Invalid argument supplied for foreach() in /home/reasona2/public_html/business_cards/pages/businesscard.php on line 17
    It refers to this section of code:
    foreach($_POST['check'] as $value) {
      $check_msg .= "\n$value\n";
    I can find no form elements with the name check[]. To use foreach, it must be an a valid array.
    It's difficult for others to pick through such a morass of code, but one thing I noticed is that you have an opening form tag inside the head of the page. Before asking for help in a forum, it's always a good idea to validate your code.
    I'd also like to include an option for users to upload a file so they can supply a logo if they want to. I've already got the HTML side of that sorted, but can anybody advise what to do with the PHP?
    There are instructions on how to upload images to a website in the Dreamweaver Cookbook here: http://cookbooks.adobe.com/post_Upload_image_to_website__PHP_-16389.html. The article doesn't cover how to attach the image to an email. The standard PHP mail() function doesn't handle attachments.

  • Downloading iTunes 8.0 causes error message

    I downloaded iTunes 8.0 and now I get an error message that reads:
    "Warning! The registry settings used by the iTunes drivers for importing and burning CDs and DVDs are missing. This can happen as a result of install other CD burning software. Please reinstall iTunes."
    I have tried repairing and removing and reinstalling itunes multiple times and the error still occurs. I also have not installed CD burning software anytime recently. The only CD burning software I have came with my computer and worked fine with the itunes prior to the download of itunes 8.0. Please help me solve this issue. Thanks.

    I'm glad my computer isn't the only one. You are the first person on here that I've seen that has the EXACT same error message as I do. I've tried the same steps as you and also had no luck fixing the problem.
    Also, yesterday I had all my music and stuff still, but I couldn't sync my iPod. This morning my entire library was no longer there. Not even in my "iTunes Music Library Folder".
    I hate this!!! Let me know if you find a way to fix it. I can't think of anything else to try and I don't know how to get my music and movies back.

  • Adobe Reader XI seems to cause error messages with Internet Explorer

    Have just upgraded to Adobe Reader XI and now I get two error messages everytime I close a Internet Explorer window.  It was not a problem with the earlier Reader and does not occurr when I uninstall Reader XI.  I just close the error messages and there is no other problem.  Is there an easy fix?

    Thanks acro123 - I am unable to post the error messages as it is no longer happening!!!!!  When I started the computer this morning the first thing was a automatic update to Reader XI by Adobe and now no error!!!!  I look to be on version XI (11.0.03).  Problem has gone away - great!!!

  • CS6 crop and straighten causes error message - "An error has occurred"

    Running CS6 on a windows 7 desktop machine. When I try to crop and straighten a 4 image scanned image I get "An error has occurred" I do not get this error on my laptop. I have uninstalled and re-installed CS6 with no change in error message. I have reset the preferences and still the same error. Any suggestions?

    Starting Photoshop without plug-ins solved the problem. Is there a way to
    find out which plug-in is the problem? Copy them to another folder and add
    them one at a time back into the plug-in folder until the problem re-occurs?
    Bob
    On Sun, Feb 22, 2015 at 6:17 PM, Benjamin Root Photography <

  • ITunes update 10.5.3.3 caused error message

    After intalling the latest update of itunes, I have been receiving an error message everytime I power up my computer. The error message states, "
    The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll" And is coming from AppleSyncNotifier. I have reinstalled the latest version of iTunes with no progress. No other problems have come forward, but I want this error message to go away.
    Can anyone provide input on this issue?
    Mike

    Do you use Mobile Me? If not uninstall the Mobile Me Control Panel

Maybe you are looking for

  • How to import images edited in Capture NX-2 to Lightroom 3?

    I've just started using Lightroom 3 and I'm thrilled with what it allows me to do. However, I have many thousands of images that were edited in Nikon Capture NX-2. Now I want to import them into Photoshop Lightroom 3 and use Lightroom as my workflow

  • Get output of layer after applied effects and transformations?

    I know I can get the pixel data of a layer either by calling Sampling8Suite1()->subpixel_sample() or by directly acessing the layer's data field. Both methods work fine, but give me only the pixels before any effects or transformations (scaling, rota

  • Complete My Album Problems

    I recently downloaded 2 songs from the Hives new CD, Black & White. I also download the Killers Shadowplay. I go to download the full albums from the Hives and Killers. I-tunes notices the past downloads and prompts me to go to "complete my album" to

  • Where do I suppress Bex Query Message

    Experts - My users are getting an error message on their Bex Query "Characteristic xxxxx was changed in InfoCube xxxxx. Adjust the query". I searched SDN and I found out that if you go to TCODE RSRT and then TCODE SUPPR_ALL, you can then suppress the

  • Lithium is Broken

    Checking on Community.vzw.come and MyVerizon oages ckucjubg ib Dontacct Us 1.  No Hyperlink for Live Chat 2.  There is a blurb for sending Email which promises 24 hoyr response but no Hyperlink to initiate the email and No Email Address. Contact us d