Input floating at 100mV DC

I recently discovered my test stand has a +100mVDC offset. If I ground the input to the A/D card, I still read 100mVDC. If I measure from the DC ground to the case of the computer, I have 100mV. After looking at our data, this machine has been running this way since day one when it was delivered ( 4 months ). Since I did not wire the machine, I am at a loss as to what I should look for in the wiring. Any ideas ?

Have you looked at the analog input mode of yout DAQ board? It just might make a difference whether you choose "referenced single ended" or "non-referenced single ended". Usually you can change that in the NI Measurement and Automation Explorer.
Maybe you already know, nevertheless all the best,
Stefan

Similar Messages

  • Convert input float to 4 bytes

    Hi,
        input image1 src;
        output pixel4 result;
        void
        evaluatePixel()
            float f = sample(src, outCoord());
    How can I get 4 bytes from this float? Is it possible?
    Thanks.

    You can't I'm afraid. Pixel Bender has no byte data type (and that in turn is because GPUs have no byte data type).

  • How to set input range to 100mv

    I use AI_configure(....) to set input range.And i want to set input range to 100 mv .How should i do.
    Please tell me..........my DAQ is PCI MIO 16E-4

    You will need to set the gain of each channel using the AI_Read function. The input range parameter of AI-Configure is acutually ignored for E Series devices. The polarity parameter will allow you to set the range to unipolar (0 to 10 V) or bipolar (-5 to +5).
    You use the gain parameter of the AI_Read to futher specify the input range. The valid gain settings for the 16E-4 can be found on page A-2 of the appendix in the user manual linked below. For a +/- 100 mV range you would set the polarity of AI_Configure to bipolar and the gain parameter to 50 of the AI_Read. I hope this helps.
    PCI E Series User Manual
    http://digital.ni.com/manuals.nsf/webAdvsearch/06F1C9FB0D0BA5C286256C010057461B?OpenDocument&vid=niwc&node=132100_US
    Regards,
    Todd D.

  • JTextField input check (errorDialog if invalid) & JComboBox Focus

    I have a JTextfield which does an input check when the JTextField focus listener's focusLost method is called.
    If I loose focus by clicking in on a JComboBox. The check gets done ok and focus is returned appropriately to the JTextField without any problems.
    But if I try to show an errorDialog when the input is incorrect, the focus is returned to the JTextField without any problems, but the JComboBox remains highlighted as though it is still selected!
    I am using sdk 1.4... on a linux box. does anyone know why this happens? and can anyone provide a clean solution to this?
    Thanx,
    Diego Paloschi.

    Hello Kleopatra,
    Here's a little demo:
    import javax.swing.*;
    import javax.swing.event.*;
    public class Debug extends JPanel
    private JTextField t1;
    private JComboBox c1;
    private T1Verifier t1Verifier;
    public void init()
         t1 = new JTextField("20", 10);
         t1.setInputVerifier(new T1Verifier(this));
         String[] s = {"v1","v2","v3"};
         c1 = new JComboBox(s);
         add(t1);
         add(c1);
    public static void main(String s[])
         Debug d = new Debug();
         d.init();
         JFrame f = new JFrame("Debug");
         f.getContentPane().add(d);
         f.setSize(300,300);
         f.setVisible(true);
    class T1Verifier extends InputVerifier
    private Debug debug;
    public T1Verifier(Debug debug)
         this.debug = debug;
    public boolean verify(JComponent input)
         JTextField tf = (JTextField) input;
         float value = Float.parseFloat(tf.getText());
         boolean inRange = (value >= 0) && ( value <= 10);
         return inRange;
    public boolean shouldYieldFocus(JComponent input)
         boolean valid = super.shouldYieldFocus(input);
         JTextField tf = (JTextField) input;
         if ( !valid ) {
         tf.requestFocus();
         JOptionPane d = new JOptionPane();
         d.showMessageDialog(debug, "Out Of Range.", "ERROR" , JOptionPane.ERROR_MESSAGE);
         return valid;
    Even if u comment out the JOptionPane and just make the inputverifier return control to the textfield it still doesn't work! What am I missing? Or how would u doi it?

  • Voltage regulators work with no input???

    Does anyone know the fix to correct this problem. I can't succesfully run a sim if the VR model always produces the correct voltage regardless of its input. Any suggestions? I am using the LM7815 in version 9. Give it a try. Just leave the input floating and you will get a regulated voltage out......(which is BS). Has anyone else had this problem?

    I don't see the correct behavior.  I am using v10.
    Attachments:
    LM7815_15V_Reg.zip ‏1 KB

  • Is that OK to power up SCC-SG01/S​C-2345 with no signal connected?

    A dumb question from first time user:
    From the specification of SCC-SG01, the voltage input range is -100mV
    to 100mV. But if no signal/sensor is connected to SCC-SG01, is that
    equivelent to RG = infinite so that voltage input becomes 2.5V/2 =
    1.25V which exceeds the limit?

    Hello,
    You are correct.  The signal would be floating at 1.25 Volts, which would cause your measurement to rail at 100 mV.  The SCC-SG01 has over voltage protection up to 28 V, so 1.25 V will not damage the module.
    Please see the SCC-SG Series Strain-Gauge Modules User Guide for more details at:  http://digital.ni.com/manuals.nsf/websearch/876393​DF257DB5B086256E55005A51CE
    I hope this helps.
    Regards,
    Sean C.

  • Options are greyed out...

    I am currently using the Adobe Cloud, Dreamweaver CC 2014, and I am unable to use any useful options due to them being grey. This only occurs when using CSS I can work under HTML without any issues but that is not what I want to use. I have tried removing the program, using the information that is given for correcting this problem but the information is not useful for me. It will not changed for use.
    I am currently on a deadline to complete a project, could someone assist by using a video clip or pictures to show what I am doing wrong or what I have not tried.
    I am using a PC, Windows 7, and MS Vista.
    Please assist, because this is frustrating. Thank you.

    The thing that I do not understand is that this is with all .css files. If I created one just now, if I chosen a template, or even if I reopen one that I have created some months back. The grey color show and my code is in partial pink and grey text. Below is the code:
    Design by Free CSS Templates
    http://www.freecsstemplates.org
    Released for free under a Creative Commons Attribution 2.5 License
    body {
      margin-top: 20px;
      padding: 0;
      background: #A8A604;
      font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
      font-size: 13px;
      color: #FFFFFF;
    h1, h2, h3 {
      margin: 0;
      font-family: Georgia, "Times New Roman", Times, serif;
      font-weight: normal;
      color: #649632;
    h1 { font-size: 44px; }
    h2 { font-size: 26px; }
    h3 { }
    p, ul, ol {
      margin-top: 0;
      line-height: 240%;
      text-align: justify;
      font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
      font-size: 11px;
    ul, ol { }
    blockquote { }
    a { color: #000000; }
    a:hover { text-decoration: none; }
    a img {
      border: none;
    img.left {
      float: left;
      margin: 7px 30px 0 0;
    img.right {
      float: right;
      margin: 7px 0 0 30px;
    hr { display: none; }
    .list1 {
    .list1 li {
      float: left;
      line-height: normal;
    .list1 li img {
      margin: 0 30px 30px 0;
    .list1 li.alt img {
      margin-right: 0;
    #wrapper {
    /* Header */
    #header-wrapper {
      width: 900px;
      margin: 0 auto;
    #header {
      width: 900px;
      height: 70px;
      margin: 0 auto;
      background: url(images/img02.jpg) no-repeat left top;
    /* Menu */
    #menu {
      float: left;
      width: 540px;
      height: 50px;
    #menu ul {
      margin: 0;
      padding: 13px 0 0 10px;
      list-style: none;
      line-height: normal;
    #menu li {
      display: block;
      float: left;
    #menu a {
      display: block;
      float: left;
      margin-right: 17px;
      padding: 5px 12px;
      text-decoration: none;
      font: 14px Georgia, "Times New Roman", Times, serif;
      color: #FFFFFF;
    #menu a:hover { text-decoration: underline; }
    #menu .current_page_item a {
      color: #FFFFFF;
    /* Search */
    #search {
      float: right;
      width: 305px;
      height: 76px;
    #search form {
      float: right;
      margin: 0;
      padding: 15px 20px 0 0;
    #search fieldset {
      margin: 0;
      padding: 0;
      border: none;
    #search input {
      float: left;
      font: 12px Georgia, "Times New Roman", Times, serif;
      border: none;
    #search-text {
      width: 135px;
      height: 18px;
      padding: 3px 0 0 5px;
      background: #ECF9E4;
      color: #658453;
    #search-submit {
      height: 21px;
      margin-left: 12px;
      color: #39561D;
    /* Page */
    #page {
      width: 900px;
      margin: 0 auto;
    /** LOGO */
    #logo {
      height: 260px;
      background: url(images/img01.jpg) no-repeat left top;
    #logo h1, #logo p {
      float: left;
      margin: 0;
      padding: 0 0 0 20px;
      line-height: normal;
    #logo h1 { padding-top: 140px; }
    #logo h1 a {
      text-decoration: none;
      text-transform: uppercase;
      color: #FFFFFF;
    #logo h1 a:hover { text-decoration: underline; }
    #logo p {
      padding: 165px 0 0 15px;
      font: italic 13px Georgia, "Times New Roman", Times, serif;
      color: #B6ACA2;
    #logo p a {
      text-decoration: none;
      color: #B6ACA2;
    #logo p a:hover { text-decoration: underline; }
    /* Content */
    #content {
      float: left;
      width: 620px;
    /* Post */
    .post {
      margin-bottom: 25px;
    .post .title {
      height: 55px;
      margin-bottom: 3px;
      padding: 19px 0px 2px 20px;
      background: url(images/img05.jpg) no-repeat left top;
      color: #FFFFFF;
    .post .date {
      float: right;
      margin-top: -60px;
      padding-right: 40px;
      font-weight: bold;
      font-size: 14px;
      color: #B6ACA2;
    .post .meta {
      margin: -40px  0 3px 25px;
      padding: 2px 30px 2px 0px;
      font-family: Arial, Helvetica, sans-serif;
      font-weight: normal;
      font-size: 10px;
      color: #B6ACA2;
    .post .meta a { color: #B6ACA2; }
    .post .entry {
      padding: 25px 20px;
    .post .links {
      margin: 0 250px 0 0;
      padding: 0 0 0 0px;
    .post .links .comments {
    .post .links .permalink {
      padding-left: 17px;
    /* Sidebar */
    #sidebar {
      float: right;
      width: 250px;
    #sidebar ul {
      margin: 0;
      padding: 0;
      list-style: none;
      line-height: normal;
    #sidebar li {
      margin-bottom: 30px;
      padding: 0 0 20px 0px;
      background: url(images/img04.jpg) no-repeat left bottom;
    #sidebar li ul {
      line-height: 200%;
      padding-bottom: 20px;
    #sidebar li li {
      margin: 0;
      padding: 0 20px;
      background: none;
    #sidebar h2 {
      height: 33px;
      margin: 0 0 20px 0px;
      padding: 15px 0 2px 20px;
      background: url(images/img03.jpg) no-repeat left top;
      font-size: 18px;
      color: #FFFFFF;
    #sidebar p {
      padding: 0px 15px;
      line-height: 200%;
    #sidebar a {
      color: #FFFFFF;
    /* Calendar */
    #calendar {
    #calendar caption {
      padding-bottom: 5px;
      font-weight: bold;
    #calendar table {
      width: 90%;
      border-collapse: collapse;
    #calendar thead th {
      padding: 5px 0;
      text-align: center;
    #calendar tbody td {
      padding: 5px 0;
      text-align: center;
    #calendar tfoot td {
      padding: 5px;
    #calendar tfoot #next {
      text-align: right;
    #calendar #today {
      background: #000000;
    /* Footer */
    #footer {
      width: 900px;
      height: 60px;
      margin: 0 auto;
      padding: 0;
      background: url(images/img06.jpg) no-repeat left top;
    #footer p {
      margin: 0;
      padding: 20px 0;
      text-align: center;
      line-height: normal;
      color: #B5ADA5;
    #footer a {
      color: #B5ADA5;

  • XML error

    Hi, i get the following error when i try to parse access table data into a new xml doc using a zerces dom parser. any ideas ????
    org.apache.xerces.dom.DOMExceptionImpl: DOM006 Hierarchy request error
         at org.apache.xerces.dom.DocumentImpl.insertBefore(DocumentImpl.java:342)
         at org.apache.xerces.dom.NodeImpl.appendChild(NodeImpl.java:213)
         at AccessToXML.doGet(AccessToXML.java:312)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at desisoft.server.servlets.Servlet.service(Servlet.java:86)
         at desisoft.server.servlets.Servlet.doService(Servlet.java:62)
    my code is:
    import java.io.*;
    import java.sql.*;
    import java.sql.ResultSetMetaData;
    import java.sql.ResultSet;
    import java.util.Vector;
    import java.util.*;
    import org.w3c.dom.Document;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.NodeList;
    import org.w3c.dom.Node;
    import org.w3c.dom.Element;
    import java.sql.Statement;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class AccessToXML extends HttpServlet
         public void doGet(HttpServletRequest req,HttpServletResponse res)
         throws ServletException,IOException
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              Connection con = null;
              Statement stmt = null;
              ResultSet resultset = null;
              Statement statement = null;
              ResultSetMetaData resultmetadata = null;
              PreparedStatement InsertStmt = null;
              try
                             Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                             con=DriverManager.getConnection("jdbc:odbc:connection");
                             stmt = con.createStatement();
                             //Create the Document object
                             Document mapDoc = null;
                             Document dataDoc = null;
                             //Create the new Document
                             Document newDoc = null;
                             /*The layout of the web browser display*/
                             out.println("<html>");
                             out.println("<head>");
                             out.println("<title>My Web Display</title>");
                             out.println("</head>");
                             out.println("<body background=\"f:/My Pictures/grainblue.jpg\">");
                             out.println("<body>");
                             out.println("<style type=\"text/css\">");
                             out.println("<!--");
                             out.println("input { float: none; border: 1px #003366 groove}");
                             out.println("-->");
                             out.println("</style>");
                             out.println("<ul>");
                             out.println("<table width=\"200\" align=\"center\" border=\"1\">");
                             out.println("<tr><td align = center>");
                             out.println("<p align=\"center\"><img border=\"1\" src=\"f:/My Pictures/ACCx.bmp\" width=\"366\" height=\"86\"></p>");
                             out.println("</td></tr>");
                             out.println("</table>");
                             out.println("<br> <br>");
                             out.println("<br>");
                             out.println("<hr>");
                             out.println("<br><br><br>");
                                  try
                                  //Create the DocumentBuilderFactory
                                  DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
                                  //Create the DocumentBuilder
                                  DocumentBuilder docbuilder = dbfactory.newDocumentBuilder();
                                  //Parse the file to create the Document
                                  mapDoc = docbuilder.parse("mapping.xml");
                                  //Instantiate a new Document object
                                  dataDoc = docbuilder.newDocument();
                                  //Instantiate the new Document
                                  newDoc = docbuilder.newDocument();
                                  catch (Exception e)
                                            System.out.println("Problem creating document: "+e.getMessage());
                                  System.out.println("toss");
                                  //Retrieve the root element
                                  Element mapRoot = mapDoc.getDocumentElement();
                                  //Retrieve the (only) data element and cast it to Element
                                  Node dataNode = mapRoot.getElementsByTagName("data").item(0);
                                  Element dataElement = (Element)dataNode;
                                  //Retrieve the sql statement
                                  String sql = dataElement.getAttribute("sql");
                                  //Output the SQL statement
                                  System.out.println(sql);
                                  //Create a new element called "data"
                                  Element dataRoot = dataDoc.createElement("data");
                                  //Create the ResultSet object, which ultimately holds the data retrieved
                                  try
                                       //Execute the query to populate the ResultSet
                                       stmt=con.createStatement();
                                       /*query to select all attributes from table product*/
                                       String query = "select * from products";
                                  resultset = stmt.executeQuery(query);
                                  catch (SQLException e)
                                       System.out.println("SQL Error: "+e.getMessage());
                                  resultmetadata = resultset.getMetaData();
                                  //Determine the number of columns in the ResultSet
                                  int numCols = resultmetadata.getColumnCount();
                                  while (resultset.next())
                                       //Create a new element called "row"
                                       Element rowEl = dataDoc.createElement("row");
                                       for (int i=1; i <= numCols; i++)
                                            //For each column index, determine the column name
                                            String colName = resultmetadata.getColumnName(i);
                                            //Get the column value
                                            String colVal = resultset.getString(i);
                                            //Output the name and value
                                            System.out.println(colName+"="+colVal);
                                            //Output a line feed at the end of the row
                                            System.out.println(" ");
                                            if (resultset.wasNull())
                                                 colVal = "empty";
                                            //Create a new element with the same name as the column
                                            Element dataEl = dataDoc.createElement(colName);
                                            //Add the data to the new element
                                            dataEl.appendChild(dataDoc.createTextNode(colVal));
                                            //Add the new element to the row
                                            rowEl.appendChild(dataEl);
                                            //Add the row to the root element
                                            dataRoot.appendChild(rowEl);
                                  //Add the root element to the document
                                  dataDoc.appendChild(dataRoot);
                                  //Retrieve the root element (also called "root")
                                  Element newRootInfo = (Element)mapRoot.getElementsByTagName("root").item(0);
                                  //Retrieve the root and row information
                                  String newRootName = newRootInfo.getAttribute("name");
                                  String newRowName = newRootInfo.getAttribute("rowName");
                                  //Retrieve information on elements to be built in the new document
                                  NodeList newNodesMap = mapRoot.getElementsByTagName("element");
                                  //Create the final root element with the name from the mapping file
                                  Element newRootElement = newDoc.createElement(newRootName);
                                  //Retrieve all rows in the old document
                                  NodeList oldRows = dataRoot.getElementsByTagName("row");
                                  for (int i=0; i < oldRows.getLength(); i++)
                                       //Retrieve each row in turn
                                       Element thisRow = (Element)oldRows.item(i);
                                       //Create the new row
                                       Element newRow = newDoc.createElement(newRowName);
                                       for (int j=0; j < newNodesMap.getLength(); j++)
                                       //For each node in the new mapping, retrieve the information
                                       //First the new information...
                                       Element thisElement = (Element)newNodesMap.item(j);
                                       String newElementName = thisElement.getAttribute("name");
                                       //Then the old information
                                       Element oldElement = (Element)thisElement.getElementsByTagName("content").item(0);
                                       String oldField = oldElement.getFirstChild().getNodeValue();
                                       //Get the original values based on the mapping information
                                       Element oldValueElement = (Element)thisRow.getElementsByTagName(oldField).item(0);
                                       String oldValue = oldValueElement.getFirstChild().getNodeValue();
                                       //Create the new element
                                       Element newElement = newDoc.createElement(newElementName);
                                       newElement.appendChild(newDoc.createTextNode(oldValue));
                                       //Retrieve list of new elements
                                       NodeList newAttributes = thisElement.getElementsByTagName("attribute");
                                       for (int k=0; k < newAttributes.getLength(); k++)
                                            //For each new attribute
                                            //Get the mapping information
                                            Element thisAttribute = (Element)newAttributes.item(k);
                                            String oldAttributeField = thisAttribute.getFirstChild().getNodeValue();
                                            String newAttributeName = thisAttribute.getAttribute("name");
                                            //Get the original value
                                            oldValueElement = (Element)thisRow.getElementsByTagName(oldAttributeField).item(0);
                                            String oldAttributeValue = oldValueElement.getFirstChild().getNodeValue();
                                            //Create the new attribute
                                            newElement.setAttribute(newAttributeName, oldAttributeValue);
                                            //Add the new element to the new row
                                            newRow.appendChild(newElement);
                                       //Add the new row to the root
                                       newRootElement.appendChild(newRow);
                                       newDoc.appendChild(newRootElement);
                                  //Add the new root to the document
                                  newDoc.appendChild(newRootElement);
                                  System.out.println(newDoc);
                                  out.println(newDoc);
                                  out.println("<br><br><br>");
                                  out.println("<hr>");
                                  out.println("<br><br><br>");
                                  out.println("<p align=\"center\">");
                                  out.println("<form method=\"GET\" action=\"Index1\">");
                                  out.println("<input type=\"submit\" value=\"Back to main menu\">");
                                  out.println("<html><head><title></title></head>");
                                  out.println("</form>");
                                  out.println("</p>");
                                  out.println("</body></html>");
                                  catch (ClassNotFoundException e1)
                                            e1.printStackTrace();
                                            // handle error locating driver
                                  catch (SQLException e2)
                                            e2.printStackTrace();
                                            // handle error getting connection
                                  finally
                                       try
                                            /*close connection default*/
                                            if (con!=null) con.close();
                                       catch (SQLException e3)
                                            e3.printStackTrace();
                                       // ignored

    A document may have a single root element.
    A root element is bieng added to the newDoc Document after it has already been added.
    //Add the new row to the root
    newRootElement.appendChild(newRow);
    newDoc.appendChild(newRootElement);
    Delete
    //Add the new root to the document
    newDoc.appendChild(newRootElement);

  • Use of max in MATH

    I am trying to find the max value of two floating point numbers. Please see code. I am not sure why I get the error(symbol : method max (float,float)) do I have to call this in its own method? Thank you for the help, drumz.
    import java.awt.Graphics;
    import javax.swing.*;
    public class Lab3_7 extends JApplet{
         float largest;                //variable for largest answer
         public void init(){
              String firstNumber;     //first string entered by user
              String secondNumber; //second string entered by user
              float number1;               //variable for conversion of user input
              float number2;               //variable for conversion of user input
              // get numbers from user
              firstNumber = JOptionPane.showInputDialog("Please enter first floating point number");
              secondNumber = JOptionPane.showInputDialog("Please enter second floating point number");
              //Convert numbers to floating point variables for calculations
              number1 = Float.parseFloat (firstNumber);
              number2 = Float.parseFloat (secondNumber);
              //Calculate either the largest number or that both numbers are equal.
              largest = Object max(number1,number2);
         public void paint( Graphics g ){
              super.paint( g );
              g.drawString ( "largest number is" + largest, 25, 25 );
    }          

    import java.awt.Graphics;
    import javax.swing.*;
    public class Lab3_7 extends JApplet{
    float largest; //variable for largest answer
    public void init(){
    String firstNumber; //first string entered by user
    String secondNumber; //second string entered by user
    float number1; //variable for conversion of user input
    float number2; //variable for conversion of user input
    // get numbers from user
    firstNumber = JOptionPane.showInputDialog("Please enter first floating point number");
    secondNumber = JOptionPane.showInputDialog("Please enter second floating point number");
    //Convert numbers to floating point variables for calculations
    number1 = Float.parseFloat (firstNumber);
    number2 = Float.parseFloat (secondNumber);
    //Calculate either the largest number or that both numbers are equal.
    largest = Math.max(number1,number2);
    public void paint( Graphics g ){
    super.paint( g );
    g.drawString ( "largest number is" + largest, 25, 25 );
    }

  • I have created a contact form using dreamweaver cc...how do i get it to send to my email?

    how do i get the contact form to send to my email?
    here is my code in html:
    <section id="content">
      <div class="main">
      <div class="container_12">
      <div class="wrapper">
      <article class="grid_8">
      <div class="indent-left">
      <h3 class="p0">Contact Form</h3>
      <form id="contact-form" method="post" enctype="multipart/form-data">
      <fieldset>
       <label><span class="text-form">Your Name:</span><input type="text"></label>
       <label><span class="text-form">Your Email:</span><input type="text"></label>
       <div class="wrapper">
      <div class="text-form">Your Message:</div>
      <div class="extra-wrap">
      <textarea></textarea>
      <div class="clear"></div>
      <div class="buttons">
      <a class="button" href="#" onClick="document.getElementById('contact-form').reset()">Clear</a>
      <a class="button" href="#" onClick="document.getElementById('contact-form').submit()">Send</a>
      </div>
      </div>
       </div>
      </fieldset>
      </form>
      </div>
      </article>
    my CSS code:
    #contact-form {
      display:block;
      width:100%;
      #contact-form label {
      display:block;
      height:35px;
      overflow:hidden;
      #contact-form input {
      float:left;
      width:443px;
      font-size:12px;
      line-height:1.25em;
      color:#808080;
      padding:7px 9px;
      margin:0;
      font-family:Arial, Helvetica, sans-serif;
      border:1px solid #dcdcdc;
      background:#fff;
      outline:none;
      #contact-form textarea {
      float:left;
      height:183px;
      width:443px;
      font-size:12px;
      line-height:1.25em;
      color:#808080;
      padding:7px 9px;
      margin:0;
      font-family:Arial, Helvetica, sans-serif;
      border:1px solid #dcdcdc;
      background:#fff;
      overflow:auto;
      outline:none;
    .text-form {
      float:left;
      display:block;
      font-size:13px;
      line-height:18px;
      width:96px;
      color:#808080;
      font-family:Arial, Helvetica, sans-serif;
    .buttons {padding:8px 30px 0 0; text-align:right;}
    .buttons a {margin-left:6px;}
    aside {
      width:100%;
      padding:40px 0 30px;
      background:#fff;
    .title-2 {
      display:block;
      padding-left:20px;
      font-size:21px;
      line-height:43px;
      color:#fff;
      background:#1c1b18;
      margin-bottom:16px;

    <form action="path-to-script-on-server/form-to-email-script.php">
    If your host doesn't provide scripts, ask them which server-side languages you can use (php, asp, asp.net, perl, coldfusion, etc...).  This will narrow your search for form-to-email processing scripts.
    Also, your form SUBMIT button is not properly coded.  It should look something like this.
    <input type="submit" name="send" id="send" value="Submit">
    RESET buttons aren't used much anymore because they lead to more form submission failures than successes.  You don't need it.
    Please review HTML5 Forms:
    Understanding HTML5 intelligent forms – Part 1: New input elements | Adobe Developer Connection
    HTML5 forms workflow | Learn Dreamweaver CC | Adobe TV
    Nancy O.

  • I have created a working php contact file but I do not know how get it onto my website properly

    Hi,
    I don't know if this a big job or too complicated for me, but I thought I would ask anyway.
    I have a contact page www.bristolequestrianservices.co.uk/contactus.html which has never ever actually worked.  I have now spend ages and ages doing a new contact page, contact.php, and this one now works perfectly.
    My problem is now I don't know how to put it all together if that makes sense.  My contactus.html has all my other things ie, header, topnav and everything like that but the contact php is just a contact page.
    Hope all of this makes sense and don't know if anyone has the time to help me with this as I think it's most probably too much!  I'm so close but so far!
    Thanks in anticipation

    Below is the entire contact.php page. Just reinstate your email address where the XXXXXXXXXX are (I don't post email address in the forum because of spam issues.)
    I have not had chance to entirely style the form but it's near. The form css is in the page. You can move it out and into its own stylesheet. You will now have to change your contact page links in your other pages from contact.html to contact.php
    Its a lot of <divs> for a simple form. This all could have been produced with 50% less code.
    <?php
    // Set email variables
    $email_to = '[email protected]';
    $email_subject = 'Form submission';
    // Set required fields
    $required_fields = array('fullname','email','comment');
    // set error messages
    $error_messages = array(
    'fullname' => 'Please enter a Name to proceed.',
    'email' => 'Please enter a valid Email Address to continue.',
    'comment' => 'Please enter your Message to continue.'
    // Set form status
    $form_complete = FALSE;
    // configure validation array
    $validation = array();
    // check form submittal
    if(!empty($_POST)) {
    // Sanitise POST array
    foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value));
    // Loop into required fields and make sure they match our needs
    foreach($required_fields as $field) {
    // the field has been submitted?
    if(!array_key_exists($field, $_POST)) array_push($validation, $field);
    // check there is information in the field?
    if($_POST[$field] == '') array_push($validation, $field);
    // validate the email address supplied
    if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field);
    // basic validation result
    if(count($validation) == 0) {
    // Prepare our content string
    $email_content = 'New Website Comment: ' . "\n\n";
    // simple email content
    foreach($_POST as $key => $value) {
    if($key != 'submit') $email_content .= $key . ': ' . $value . "\n";
    // if validation passed ok then send the email
    mail($email_to, $email_subject, $email_content);
    // Update form switch
    $form_complete = TRUE;
    function validate_email_address($email = FALSE) {
    return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE;
    function remove_email_injection($field = FALSE) {
    return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field));
    ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <script type="text/javascript" src="http://www.bristolequestrianservices.co.uk/js/jquery.js"></script>
    <script type="text/javascript" src="http://www.bristolequestrianservices.co.uk/js/timothy.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
    <script type="text/javascript"  src="http://www.bristolequestrianservices.co.uk/contact/validation/validation.js"></script>
    <script type="text/javascript">
    var nameError = '<?php echo $error_messages['fullname']; ?>';
    var emailError = '<?php echo $error_messages['email']; ?>';
    var commentError = '<?php echo $error_messages['comment']; ?>';
    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];}}
    </script>
    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    ga('create', 'UA-47829305-1', 'bristolequestrianservices.co.uk');
    ga('send', 'pageview');
    </script>
    <link href="http://www.bristolequestrianservices.co.uk/css/styles.css" rel="stylesheet" type="text/css" media="screen">
    <link href="http://www.bristolequestrianservices.co.uk/css/print.css" rel="stylesheet" type="text/css" media="print">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="cache" />
    <meta name="robots" content="INDEX,FOLLOW" />
    <meta name="keywords" content="mobile field shelter,mobile stables,good quality,prices,cheap,shelters, shelter, stables, stables, mobile filed shelters, mobile stable, " />
    <meta name="description" content="Quality mobile stables and field shelters, we will not be beaten on price for this quality" />
    <title>Mobile Field Shelters | Mobile Stables | Bristol Equestrian Services</title>
    <!-- Google Analytics Code Goes Below Here -->
    <meta name="google-site-verification" content="zUg_yn4KVoI6Xy8LLvw0PjtwgXPmlQVNKb3tY001yp4" />
    <!-- End Google Analytics Code -->
    <style>
    #formWrap {
        width:648px;
        margin-top: 0px;
        margin-left: 0px;
        background:#fff;
        border:1px solid #F1F1F1;
        -moz-border-radius:20px;
        -moz-box-shadow:2px 2px 5px #999;
        -webkit-border-radius:20px;
        -webkit-box-shadow:2px 2px 5px #999;
        padding: 0;
    #formWrap #form {
        border-top:1px solid #EEE;
        width:648px;
    #formWrap #form .row {
        border-bottom:1px dotted #EEE;
        display:block;
        line-height:38px;
        overflow:auto;
        padding: 10px 0px;
        width:100%;  
    #form .row .label {
        font-size:16px;
        font-weight:bold;
        font-family:Arial, Helvetica, sans-serif;
        width:180px;
        padding-right:10px;
        margin-right:10px;
    #form .row .input {
        float:left;
        margin-right:10px;
        width:auto;
    /* width:auto;*/
    width: 455px;
    #form .row .input2 {
        float:left;
        margin-right:10px;
        width:auto;
    /* width:auto;*/
    width:455px;
    .detail {
        width:455px;
        font-family:Arial, Helvetica, sans-serif;
        font-size: 14px;
        padding: 10px 8px;
        margin:0px;
        display:block;
        border-radius:5px 5px 5px 5px;
        background:#e9e9e9;
        border:1px solid #ccc;
    .mess {
        width:455px;
        max-width:450px;
        height:280px;
        overflow:auto;
        font-family:Arial, Helvetica, sans-serif;
        font-size:14px;
        padding:7px 8px;
        line-height:1em;
        margin:0px;
        display:block;
        border-radius:5px 5px 5px 5px;
        background:#e9e9e9;
        border:1px solid #ccc;
    .detail:focus {
        background-color:#fff;
        border:1px solid #999;
        outline:none;
    .detail:mess {
        background-color:#fff;
        border:1px solid #999;
        outline:none;
    #form .row .context {
        color:#999;
        font-size:11px;
        font-style:italic;
        line-height:14px;
        font-family:Arial, Helvetica, sans-serif;
        width:200px;
        float:left;
    #form #submit {
        font-family:Arial, Helvetica, sans-serif;
        margin: 25px 0 0 0;
        color:#000;
        font-size:16px;
        text-shadow:1px 1px 1px #999;
        padding:10px;
    span.error{
        color:#000;  
        display:block;
        font-family:Arial, Helvetica, sans-serif;
        font-size:12px;
        background-image:url(http://www.bristolequestrianservices.co.uk/contact/images/x.png);
        background-repeat:no-repeat;
        background-position: 10px center;
        padding-left: 10%;
        width: 90%;
    #formWrap h2 {
        font-family:Arial, Helvetica, sans-serif;
        font-size: 26px;
        font-weight: normal;
        color:#255e67;
        margin: 25px 0 0 20px;
    </style>
    </head>
    <body>
    <div id="outer">
    <div id="wrapper">
    <div id="header">
    <div id="companyLogo">
    <img src="http://www.bristolequestrianservices.co.uk/images/logo4.jpg" alt="americanbarn" width="182" height="110" /><img src="http://www.bristolequestrianservices.co.uk/images/banner1.jpg" alt="horsebanner" width="302" height="84" />
    </div> <!-- end logo-->
    <div id="contact">
    <span class="phone">Tel: 07800538607 | 07920408396<br></span>
    <span class="email">Email: [email protected]</span>
    </div>
    </div>
    <!-- end header -->    
    <div id="topnav">
    <ul>
    <li><a href="index.html">Home</a></li>
    <li><a href="stables.html">Stables</a></li>
    <li><a href="shelters.html">Shelters</a></li>
    <li><a href="gallery.html">Gallery</a></li>
    <li><a href="pricelist.html">Price List</a></li>
    <li><a href="usefullinks.html">Useful Links</a></li>
    <li><a href="contactus.php">Contact Us</a></li>
    </ul>      
    </div>
    <img src="http://www.bristolequestrianservices.co.uk/images/photos/lisa1.jpg">
    <img src="http://www.bristolequestrianservices.co.uk/images/photos/me.jpg">       
    <div id="content">
    <h1>Contact Us</h1>
    <p><span class="big-blue">DUE TO A TECHNICAL ISSUE WITH THE CONTACT FORM PLEASE CONTACT US ON [email protected]</span><p>When contacting us please give us as much details as you can. If you want a quote for delivery please submit your post code. We will endeavour to respond to all emails within a few hours.</p>
    <p>Office opening hours: Monday to Friday 7.30am-6pm</p>
    <p>Saturday 8am-5pm</p>
    <p>Sunday CLOSED</p>
    <div id="formWrap">
    <h2>We Appreciate Your Feedback</h2>
    <div id="form">
    <?php if($form_complete === FALSE): ?>
    <form action="contact.php" method="post" id="comments_form">
    <div class="row">
    <div class="label">Your Name</div> <!--end .label -->
    <div class="input">
    <input type="text" id="fullname" class="detail" name="fullname" value="<?php echo isset($_POST['fullname'])? $_POST['fullname'] : ''; ?>" /><?php if(in_array('fullname', $validation)): ?><span class="error"><?php echo $error_messages['fullname']; ?></span><?php endif; ?>
    </div><!-- end .input -->
    </div><!-- end .row -->
    <div class="row">
    <div class="label">Your Email Address</div> <!--end .label -->
    <div class="input">
    <input type="text" id="email" class="detail" name="email" value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>" /><?php if(in_array('email', $validation)): ?><span class="error"><?php echo $error_messages['email']; ?></span><?php endif; ?>
    </div><!-- end .input -->
    </div><!-- end .row -->
    <div class="row">
    <div class="label">Your Message</div> <!--end .label -->
    <div class="input2">
    <textarea id="comment" name="comment"  class="mess"><?php echo isset($_POST['comment'])? $_POST['comment'] : ''; ?>
    </textarea><?php if(in_array('comment', $validation)): ?><span class="error"><?php echo $error_messages['comment']; ?></span><?php endif; ?>
    </div><!-- end .input -->
    </div><!-- end .row -->
    <input type="submit" id="submit" name="submit" value="Send Message" />
    </form>
    <?php else: ?>
    <p style="font-size:35px; font-family:Arial, Helvetica, sans-serif; color:#255e67; margin-left:25px;">Thank you for your Message!</p>
    <script type="text/javascript">
    setTimeout('ourRedirect()', 5000)
    function ourRedirect () {
    location.href='index.html'
    </script>
    <?php endif; ?></div><!-- end #form-->
    </div><!-- end formWrap div -->
    </div>
    <div id="rightside">
    <h2>Latest News</h2>
    <p><a href="latestdesign.html">Our Latest Design</a></p>
    <p><a href="newpictures.html">New Pictures Added</a></p>
    <p><a href="testimonials.html">New Testimonials</a></p><br>
    <h4>View Gallery</h4><br>
    <img src="http://www.bristolequestrianservices.co.uk/images/buttons/viewgallery.jpg" /><br>
    <br><h4>Follow Us</h4><br>
    <div id="social-media-icons2">
    <ul>
    <li><a href="https://www.facebook.com/groups/150449201771804/"><img src="http://www.bristolequestrianservices.co.uk/images/icons/facebook.jpg" /></a></li>
    <li><a href="£"><img src="http://www.bristolequestrianservices.co.uk/images/icons/rss.jpg" /></a></li>
    <li><a href="http://www.twitter.com"><img src="http://www.bristolequestrianservices.co.uk/images/icons/twitter.jpg" /></a></li>
    <li><img src="http://www.bristolequestrianservices.co.uk/images/icons/youtube.jpg" /></li>
    </ul>
    </div>
    </div>
    <div id="rightside-bottom">
    <div id="footer">
    <p class="footer-text">Copyright 2014 Bristol Equestrian Services</p>
    </div>
    </div>
    </body>
    </html>

  • Button not appearing where I think it should.

    Good afternoon all,
    I wonder if anyone can help me with this please?  I think it is probably due to a float being in place but I am not sure how to rectify this.  I can normally find the answers to questions I have by googling but this is specific to my code.
    I am setting up a website and all is looking really good apart from the submit button on the Newsletter section.  I have uploaded the html page and css to the back of my website as it is not ready to go live yet and hope that someone can point me in the right direction. 
    I have tried adding float:none to the inpot css and the submit button css and putting the submit button in a row div but to no avail.
    www.simpl-e.im/test/test_newsletter.html
    Many thanks in advance if anyone is able to help.
    Kind regards, Claire.

    This is what I did to correct the matter
    form .row {
        width: auto;
        display:block;
        height: auto;
    .row .label {
        font-size: 14px;
        width: 150px;
        text-align: left;
        float: none;
        margin-right: 10px;
        padding: 7px 0px;
        display: inline-block;
    .row .input {
        float: none;
        width: 300px;
        padding: 3px 0px;
        font-family: Georgia, "Times New Roman", Times, serif;
        display: inline-block;
    For the submit button you will need the same structure as the other inputs, i.e. div class row etc, leaving a blank for the label div.
    Gramps

  • CSS Logo position problem

    Hello
    I have been recently working on a web project. In the project I have a css file Thats suppose to position the logo image.
    This is the css code:
    /** LOGO */
    #logo {
    width: 830px;
    height: 90px;
    margin: 0 auto;
    margin-top: 10px;
    margin-left: 200px;
    background: url(images/img04.jpg) no-repeat left top;
    Margin-top moves the logo down and margin-left moves the logo in alignment. The problem is that when I view the
    page on different screen sizes margin-left makes the logo image automatically move to the middle of the page.
    Instead of staying in the required position.
    Can any one help.
    Thanks.

    Hi Thanks so much for the reply.
    I want to add more information.
    This is the css:
    body {
        margin: 0;
        padding: 0;
        background: url(images/img01.jpg) repeat-x left top;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #66665E;
    h1, h2, h3 {
        margin: 0;
        text-transform: uppercase;
        font-family: "Trebuchet MS", Georgia, "Times New Roman", Times, serif;
        font-weight: normal;
        color: #0C95C9;
    h1 { font-size: 44px; }
    h2 { font-size: 18px; }
    h3 { }
    p, ul, ol {
        margin-top: 0;
        line-height: 240%;
        text-align: justify;
    ul, ol { }
    blockquote { }
    a { color: #0C95C9; }
    a:hover { text-decoration: none; }
    a img {
        border: none;
    img.left {
        float: left;
        margin: 7px 30px 0 0;
    img.right {
        float: right;
        margin: 7px 0 0 30px;
    hr { display: none; }
    .list1 {
    .list1 li {
        float: left;
        line-height: normal;
    .list1 li img {
        margin: 0 30px 30px 0;
    .list1 li.alt img {
        margin-right: 0;
    #wrapper {
    /* Header */
    #header-wrapper {
    #header {
        width: 920px;
        height: 45px;
        margin: 0 auto;
    /* Menu */
    #menu {
        float: left;
        width: 640px;
        height: 45px;
    #menu ul {
        margin: 0;
        padding: 10px 0px 0px 5px;
        list-style: none;
        line-height: normal;
    #menu li {
        display: block;
        float: left;
    #menu a {
        display: block;
        float: left;
        margin-right: 3px;
        padding: 3px 25px 2px 25px;
        text-decoration: none;
        text-transform: capitalize;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 12px;
        color: #FFFFFF;
    #menu a:hover { text-decoration: underline; }
    #menu .current_page_item a {
        height: 20px;
        background: #FEC200 url(images/img02.jpg) repeat-x left top;
        color: #FFFFFF;
    #menu .first {
        background: none;
    /* Search */
    #search {
        float: right;
        width: 250px;
        height: 45px;
    #search form {
        float: right;
        margin: 0;
        padding: 12px 30px 0 0;
    #search fieldset {
        margin: 0;
        padding: 0;
        border: none;
    #search input {
        float: left;
        font: 12px Georgia, "Times New Roman", Times, serif;
        border: none;
    #search-text {
        width: 135px;
        height: 18px;
        padding: 3px 0 0 5px;
        border: 1px solid #333333;
        background: #ECF9E4;
        color: #000000;
    #search-submit {
        height: 25px;
        margin-left: 10px;
        padding: 1px 10px;
        background: #C0C0C0 url(images/bg_grey.jpg);
        color: #000000;
    /* Page */
    #page {
        width: 920px;
        margin: 0 auto;
    #page-bgtop {
        padding-top: 30px;
        /** LOGO */
    #logo {
        width: 920px;
        height: 90px;
        margin: 0 auto;
        background: url(images/img04.jpg) no-repeat left top;
    #logo h1, #logo p {
        margin: 0px;
        line-height: normal;
        text-transform: lowercase;
        font-weight: normal;
        color: #FFFFFF;
    #logo p {
        text-transform: lowercase;
        font-size: 10px;
    #logo h1 {
        padding-top: 54px;
        font-size: 34px;
    #logo a {
        text-decoration: none;
        color: #FFFFFF;
    /* Content */
    #content {
        float: center;
        width: 920px;
        height: 800px;
        padding-top: 0px;
        padding-right: 0px;
    /* Post */
    .post {
        background: url(images/img07.jpg) repeat-x left bottom;
        margin-bottom: 25px;
    .post .title {
        height: 30px;
        color: #549900;
    .post .title a {
        text-decoration: none;
        color: #585D60;
    .post .date {
    .post .meta {
        margin-top: -10px;
        padding: 2px 30px 2px 16px;
        background: url(images/img03.gif) no-repeat left 8px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: normal;
        font-size: 10px;
        color: #66665E;
    .post .meta span {
        display: block;
        margin-top: -10px;
    .post .meta a { }
    .post .entry {
        padding: 10px 0;
    .post .links {
        margin: 0 250px 0 0;
        padding: 0 0 0 0px;
    .post .links .comments {
    .post .links .permalink {
        padding-left: 17px;
    /* Sidebar */
    #sidebar {
        float: left;
        width: 177px;
        padding-left: 22px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
        color: #585D60;
    #sidebar ul {
        margin: 0;
        padding: 0;
        list-style: none;
        line-height: normal;
    #sidebar li {
        margin-bottom: 30px;
        padding: 0 0 10px 0px;
    #sidebar li ul {
    #sidebar li li {
        margin: 0;
        padding: 7px 10px 10px 7px;
        background: url(images/img07.jpg) repeat-x left bottom;
    #sidebar p {
        margin: 0;
        padding: 0px 10px;
    #sidebar h2 {
        height: 26px;
        margin: 0 0 10px 0px;
        padding: 12px 0 2px 7px;
        text-transform: capitalize;
        font-size: 18px;
        font-weight: normal;
        color: #464F54;
    #sidebar p {
        line-height: 200%;
    #sidebar a {
        text-align: left;
        text-decoration: none;
        font-weight: normal;
        color: #585D60;
    /* Calendar */
    #calendar {
    #calendar caption {
        padding-bottom: 5px;
        font-weight: bold;
    #calendar table {
        width: 100%;
        border-collapse: collapse;
        border-bottom: 1px solid #24130F;
        border-left: 1px solid #24130F;
        border-right: 1px solid #24130F;
    #calendar thead th {
        padding: 5px 0;
        text-align: center;
        border-top: 1px solid #24130F;
        border-left: 1px solid #24130F;
        background: #24130F;
    #calendar tbody td {
        padding: 5px 0;
        text-align: center;
        border-top: 1px solid #24130F;
        border-left: 1px solid #24130F;
        border-bottom: 1px solid #24130F;
    #calendar tfoot td {
        padding: 5px;
        border-left: 1px solid #24130F;
        border-bottom: 1px solid #24130F;
    #calendar tfoot #next {
        border-top: 1px solid #24130F;
        text-align: right;
    #calendar tfoot #prev {
        border-top: 1px solid #24130F;
    #calendar .pad {
        border-bottom: 1px solid #24130F;
    #calendar #today {
        background: #24130F;
    /* Footer */
    #footer {
        width: 920px;
        height: 49px;
        margin: 0 auto;
        padding-top: 50px;
    #footer-bgcontent {
        margin: 0px;
        padding: 0px;
        height: 99px;
        background: #394144;
    #footer p {
        margin: 0;
        text-align: center;
        line-height: normal;
        text-transform: uppercase;
        font-size: 10px;
        color: #FFFFFF;
    #footer a {
        color: #E5FFC4;
    This is the Mainpage:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>Uimodo</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <link href="../style/style.css" rel="stylesheet" type="text/css" media="screen" />
    <script type="text/javascript" src="jquery/jquery-1.4.3.min.js"></script>
    </head>
    <body>
    <div id="wrapper">
        <div id="logo">
      </div>
      <hr />
        <!-- end #logo -->
        <div id="header">
          <div id="menu">
            <ul>
              <li><a href="Vidmin.php" class="first">Home</a></li>
              <li><a href="Other.php">Other</a></li>
            </ul>
          </div>
          <!-- end #menu -->
          <div id="search">
            <form method="get" action="">
              <fieldset>
                <input type="button" id="search-submit" onclick="window.location.href='now.php'" value="UPLOAD NOW" />
              </fieldset>
            </form>
          </div>
          <!-- end #search -->
      </div>
        <!-- end #header -->
        <!-- end #header-wrapper -->
        <div id="page">
        <div id="page-bgtop">
            <div id="content">
              <table width="920" border="0" align="center"  cellpadding="4">
                <tr>
                  <td height="42" valign="top"><table width="415" height="41" align="right">
                    <tr>
                      <td width="215" height="35" align="center"> </td>
                      <td width="60" align="center"><a href="" target="_blank"><img src="../Logo/fblogo.png" alt="" width="34" height="33" /></a></td>
                      <td width="124"><a href="" target="_blank"><img src="../Logo/twitlogo.png" alt="" width="34" height="33" /></a></td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="72" valign="top" align="center"><table width="859" height="72" border="0">
                    <tr>
                      <td width="293" height="49"><div align="center"><font size="5" color="#333333">Signup</font></div></td>
                      <td width="14"> </td>
                      <td width="296"><div align="center"><font size="5" color="#333333">Login</font></div></td>
                    </tr>
                    <tr>
                      <td height="17"><div align="center" id="register"></div></td>
                      <td> </td>
                      <td><div align="center" id="loginstatus"></div></td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="269" valign="top" align="center"><table width="908" height="291" border="0" align="center" cellpadding="3" bgcolor="#CCCCCC">
                    <tr>
                      <td width="401" height="287" align="center" valign="top"><form id="register_form" method="post" action="">
                        <table width="300" height="291" >
                          <tr>
                            <td height="23" colspan="2"> </td>
                            </tr>
                          <tr>
                            <td width="85" height="36"><div align="right"><font color="#333333" size="3" face="Arial, Helvetica, sans-serif">Username :</font> <br />
                              </div></td>
                            <td width="203"><input name="realname" id="realname" type="text" size="30" value='<?Php echo $profile['displayName'];?>'/></td>
                            </tr>
                          <tr>
                            <td height="45"><div align="right"><font color="#333333" size="3" face="Arial, Helvetica, sans-serif">Email :</font> <br />
                              </div></td>
                            <td><div align="left">
                              <input name="email" id="email" type="text" size="30" value='<?Php echo $profile['email'];?>'/>
                              <input name="propic" id="propic" type="hidden" size="30" value='<?Php echo $profile['photo'];?>'/>
                              </div></td>
                            </tr>
                          <tr>
                            <td height="81"><div align="right"><font color="#333333" size="3" face="Arial, Helvetica, sans-serif">Security :</font> <br />
                              </div></td>
                            <td><div align="center"><img src="CaptchaSecurityImages.php?width=150&amp;height=40&amp;characters=8" alt="captcha"/></div>
                              <p>
                                <input name="security_code" id="security_code" type="text" size="30" />
                                </p></td>
                            </tr>
                          <tr>
                            <td height="45"><div align="right"><font color="#333333" size="3" face="Arial, Helvetica, sans-serif">Password:</font> <br />
                              </div></td>
                            <td><div align="left">
                              <input name="password" id="password" type="text" size="30" />
                              </div></td>
                            </tr>
                          <tr>
                            <td height="45"> </td>
                            <td><div align="left">
                              <input type='submit' name="submit" id="submit" value='Sign Up'/>
                              </div></td>
                            </tr>
                          </table>
                        </form></td>
                      <td width="6" align="center"></td>
                      <td width="475" align="center" valign="top"><form method='post' id='login_form'>
                        <table width="300" height="176" >
                          <tr>
                            <td height="19" colspan="2"> </td>
                            </tr>
                          <tr>
                            <td height="36"><div align="right"><font color="#333333" size="3" face="Arial, Helvetica, sans-serif" >Email :</font> <br />
                              </div></td>
                            <td><div align="left">
                              <input name='emailenter' type='text' id='emailenter'  size="25" />
                              </div></td>
                            </tr>
                          <tr>
                            <td height="45"><div align="right"><font color="#333333" size="3" face="Arial, Helvetica, sans-serif">Password :</font> <br />
                              </div></td>
                            <td><div align="left">
                              <input name='passcode' type='password' id='passcode' maxlength='15' size="25" />
                              </div></td>
                            </tr>
                          <tr>
                            <td height="45"> </td>
                            <td><div align="left">
                              <input type='submit' name='submit' value='Login'/>
                              <a href="ForgotPassword.php">Forgot Password?</a></div></td>
                            </tr>
                          </table>
                        </form></td>
                    </tr>
                  </table></td>
                </tr>
                <tr>
                  <td height="23" valign="top" align="center" > </td>
                </tr>
              </table>
    </div>
            <!-- end #content -->
            <div style="clear: both;"> </div>
        </div>
        </div>
        <!-- end #page -->
        <div id="footer-bgcontent">
        <div id="footer">
            <p>Copyright (c) . </p></div>
        </div>
        <!-- end #footer -->
    </div>
    </body>
    </html>
    Please just focus on the logo div. It suddenly moves to the middle on different screen size etc. Hope you can help.

  • Different readout in single channel and multichann​el mode

    I am puzzled by one observation. I use labview 7.1 in windows XP. I have one PCI-M6229 board and two PCI-6713 boards. I use the Analog in channels to read signal, which will control other digital channels.
    After I wired things up and programmed my VIs, I run many tests. When I read out individual channels separately, I got the correct reading displayed in the Graphs in my VI. However, when I use the graph display to show the readout from individual channels acquired with the Analog 1D Wfm NChan NSamp VI, the readout is offset by several Volts in the negative direction. The signals are not stable either. Everytime I turn on the VI, the voltage drift from what appear to be the correct reading toward the offset, then stablize. If I stop the VI and turn it back on quickly, the drift is not obvious and sticks to the offset. The longer I wait till I turn on the VI, the more it drifts.
    Initially I though I had miswired the external instrument. I did extensive checking and testing and found no apparent problem. All reading with a multimeter is what supposed to be. What convinced me this is not external problem is the fact that when read as independent channels, the display is fine, just the same as read out by the multimeter. I am baffled because this appears to have something to do with how the signal is read out in the computer and may have a software origin.
    Has anyone seen similar problem? Or have I missed something big time and not knowing it? Please, any advice helps.
    Thanks,
    Ron

    Ron,
    I am not familiar with your DAQ hardware but this sounds like a case of unterminated inputs floating to the power supply rails and creating havoc with the multiplexer and amplifier. Many DAQ cards use a single analog to digital converter (A/D) and switch the input channels to it via a multiplexer (MUX). Unused inputs may look like a capacitor and can charge up (or down) to one of the power supply voltages or anywhere between due to leakage currents. Depending on the design of the multiplexer and the amplifier following it, these inputs charged to maximum may cause offsets or crosstalk between channels.
    The cure: 1) Terminate all unused channels to the ground, common, or sense input for AI. It may have various names on different boards.
    2) Drive all the channels you are using from low impedance sources such as a buffer amplifier. High source impedances aggravate the problem you are seeing.
    3) Make sure you allow enough time for the multiplexer and amplifier to settle to the new value after switching. The DAQ manual should have data on settling times. Depending upon how fast the MUX and amplifier switch and settle, the throughput on a multichannel board may be quite a bit slower than the maximum sampling rate divided by the number of channels. Again, read the manual.
    Lynn

  • Spartan e3 Analog 2 Digital

    Hi,
    i've a problem concerning analog to digital conversion using my spartan e3 fpga.
    I set the PreAmp as recommended in the User Guide and want to start analog to digital conversion.
    I also disable the other SPI devices in order to read out the MISO properly. But when i've no signal neither on
    ADC A nor on ADC B i can read out values, which a different from zero. And the most confusing thing is, that
    the values are changing with the time.
    I also use a 34 cycles to read out the data properly.
    Best regards,
    Steve Ness

    Hi Steve,
    an analog-digital converter needs a input source with a well-defined impedance.
    If you have an open analog input (floating) the ADC provides you with any value. Mostly this value changes slowly.
    More details you can take from the following documents:
    Troubleshooting Unexpected Voltages, Floating, or Crosstalk on Analog Input Channels
    http://digital.ni.com/public.nsf/allkb/B9BCDFD960C06B9186256A37007490CD
    You can test the analog input with a battery.
    I hope this helps.
    With best regards,
    Ralf N.

Maybe you are looking for

  • Imac making 3 tones on startup

    I tried to upgrade to 10.5.6 tonight and got an error saying it could not verify the update file. On the required restart the mac displays nothing on the screen. I hear 3 tones that keep repeating. I cannot boot from CD or anything. Tones are identic

  • Determining number of elements in a bitset?

    Neither size() or length() returns the number of bits in the set, so how do I iterate over a bitset? Bitset bs = new Bitset(10); bs.set(3,true); bs.size(); // returns 64 -- who cares about the memory used? Does the JVM even really know? bs.length();

  • Mac mini (late 2012) when booting shows flashing question mark folder

    Hello, so after installing software update to my mac mini *late 2012* it froze for few mins so then I rebooted it and now it wont boot it shows flashing question mark folder, I can't use the boot buttons because it asks me for a frimware password and

  • How did I get a 16 GB iPod touch 4g

    I ordered an iPod touch 4G on Amazon for just under $200 and it was listed as an 8GB white. However, I recieved it in the mail yesterday and it said 16GB on the plastic box. I was confused. So I oped it up and noticed on the back of the iPod itself i

  • Automatic Sorting of Appraisal Goals based on entries in weight col in OSA

    Hello Experts, Is it possible to automatically sort the appraisal elements (VC) based on the objective weight column? Basically we wanted the end users to be able to click on a button called Sort (or Refresh or Save, etc) in the appraisal document an