How to get data out of quiz with POST or GET?

Seems like a simple question, but I haven't yet been able to
capture the results of a quiz yet. I want to fetch the POST data
from the quiz in PHP using something like:
$quizTotal = $_POST['total'];
$quizCorrect = $_POST['correct'];
Alternatively, I can use ASP:
quizTotal = request.form("total")
quizCorrect = request.form("correct")
But I still haven't been able to get ANY data out of a quiz.
HOW?

benhenny,
Are you trying to capture data locally and send to a
server-side script - or
use the existing LMS functionality to capture the post (for
AICC) in a PHP
script?
Regards,
Andrew

Similar Messages

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • How to get data out of XML?

    Hi,All.
    I am running SAX (JAXP1.01) in Applet to process XML file. My question is how to get data out of xml format according to the field name (@age,@rank etc)
    and write into string buffer seperated by comma.
    Should I use SAX or DOM? (file size is big)
    My xml as follow :
    <ROOT>
    <FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@team/relay}">
         <ObjectName>Field124</ObjectName>
         <FormattedValue>HUNTER</FormattedValue>
         <Value>HUNTER</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@age}">
         <ObjectName>Field125</ObjectName>
         <FormattedValue> 19</FormattedValue>
         <Value> 19</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field126</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{results.athrel_name}">
         <ObjectName>Field127</ObjectName>
         <FormattedValue>1-1 NORRIE</FormattedValue>
         <Value>1-1 NORRIE</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2}">
         <ObjectName>Field128</ObjectName>
         <FormattedValue>1:54.75</FormattedValue>
         <Value>1:54.75</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1course}">
         <ObjectName>Field129</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1std}">
         <ObjectName>Field130</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2course}">
         <ObjectName>Field131</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2std}">
         <ObjectName>Field132</ObjectName>
         <FormattedValue>QT</FormattedValue>
         <Value>QT</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@points(left)}">
         <ObjectName>Field133</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@pointsdecimal}">
         <ObjectName>Field134</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:decimal" FieldName="{@points(right)}">
         <ObjectName>Field135</ObjectName>
         <FormattedValue>0</FormattedValue>
         <Value>0.00</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1}">
         <ObjectName>Field136</ObjectName>
         <FormattedValue>1:55.98</FormattedValue>
         <Value>1:55.98</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field137</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    Repeat...
    </FormattedReportObject>
    </ROOT>
    ------------------------------------------------

    For big files use SAX: quicker and less memory usage.
    The xerces parser from Apache has some examples. Basically what you do is scan the XML, remembering what tag you are and once you find the right tag, read the contents.

  • Why so much code getting data out of DB & into web services

    I am new to Java and I am experimenting with web services.
    I am trying to get data out of a database and into a web service
    This is the code I had to build just to get a little bit of data out of a DB and into a web service.
    // Open a database connection and statement.
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
    Connection dbConn = DriverManager.getConnection("jdbc:db2:sample","myuser","mypass");
    Statement statement = dbConn.createStatement();
    // Build the message.
    SOAPMessageContext ctx = (SOAPMessageContext) messageContext;
    try {
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage m = messageFactory.createMessage();
    SOAPEnvelope env = m.getSOAPPart().getEnvelope();
    SOAPBody body = env.getBody();
    SOAPElement elem =
    body.addBodyElement(env.createName("ns1:getEmployees"));
    elem.addNamespaceDeclaration("ns1",
    "http://www.abc.com/SampleApplication/Employee.wsdl");
    elem.addNamespaceDeclaration("ns2",
    "http://www.abc.com/SampleApplication/Employee.xsd");
    SOAPElement elem1 = new SOAPElementImpl("Response", null, null);
    // Execute the query.
    String sql = "SELECT EMPNO, FIRSTNME, MIDINIT, LASTNAME, HIREDATE FROM EMPLOYEE";
    ResultSet result = statement.executeQuery(sql);
    Isn't there a way with less code to get data out and stick into a web service?

    I left the part of the code out that is bugging me - I was talking about all of the code to get the data into XML..
    here's the whole code..
    // Open a database connection and statement.
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
    Connection dbConn = DriverManager.getConnection("jdbc:db2:sample","myuser","mypass");
    Statement statement = dbConn.createStatement();
    // Build the message.
    SOAPMessageContext ctx = (SOAPMessageContext) messageContext;
    try {
    MessageFactory messageFactory = MessageFactory.newInstance();
    SOAPMessage m = messageFactory.createMessage();
    SOAPEnvelope env = m.getSOAPPart().getEnvelope();
    SOAPBody body = env.getBody();
    SOAPElement elem =
    body.addBodyElement(env.createName("ns1:getEmployees"));
    elem.addNamespaceDeclaration("ns1",
    "http://www.abc.com/SampleApplication/Employee.wsdl");
    elem.addNamespaceDeclaration("ns2",
    "http://www.abc.com/SampleApplication/Employee.xsd");
    SOAPElement elem1 = new SOAPElementImpl("Response", null, null);
    // Execute the query.
    String sql = "SELECT EMPNO, FIRSTNME, MIDINIT, LASTNAME, HIREDATE FROM EMPLOYEE";
    ResultSet result = statement.executeQuery(sql);
    SOAPElement employee = new SOAPElementImpl("Employees", "ns2", "http://www.abc.com/SampleApplication/Employee.xsd");
    employee.addChildElement("ns2:EMPNO").addTextNode(result.getString("EMPNO"));
    employee.addChildElement("ns2:FIRSTNME").addTextNode(result.getString("FIRSTNME"));
    employee.addChildElement("ns2:FIRSTNME").addTextNode(result.getString("MIDINIT"));
    employee.addChildElement("ns2:LASTNAME").addTextNode(result.getString("LASTNAME"));
    employee.addChildElement("ns2:FIRSTNME").addTextNode(result.getString("HIREDATE"));
    elem1.addChildElement(employee);
    elem.addChildElement(elem1);
    ctx.setMessage(m);
    dbConn.close();
    } catch (Throwable e) {
    weblogic.utils.Debug.say("(hbs):e " + e);
    e.printStackTrace(System.out);
    putting the data in the node seems excessive to me.
    thanks
    AP

  • HT4906 I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto?

    I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto? To be honest I'm not even sure what type of Mac I have and don't know how to find out what kind it is
    I'd also like to make address labels and don't know where to find that either

    You would make address lables with the Contacts app.
    If you don't have the user name and password used to set up the machine then you need to purchase the apps for yourself.

  • Hot To Get Data Off A G5 With Broken Display Card?

    Hi.
    I have a G5 with a broken display card, the computer boots up ok. Is there a way I can get data out the G5 onto my powerbook using a firewire cable between the 2 computers? Unfortunately the file sharing is off on the G5. Any help would be fantastic thanks

    Hi Milton,
    You can use FireWire Target Disk Mode to transfer the files to your Powerbook.
    Instructions can be found here: http://docs.info.apple.com/article.html?artnum=58583
    Good luck...

  • How to extract data from XML file with JavaScript

    HI All
    I am new to this group.
    Can anybody help me regarding XML.
    I want to know How to extract data from XML file with JavaScript.
    And also how to use API for XML
    regards
    Nagaraju

    This is a Java forum.
    JavaScript is something entirely different than Java, even though the names are similar.
    Try another website with forums about JavaScript.
    For example here: http://www.webdeveloper.com/forum/forumdisplay.php?s=&forumid=3

  • Getting data out of Oracle to SQL Server 2005

    Hello,
    I am new in Oracle and I have this question.
    I need to transfer lots of data frequently at day from a large Oracle DB to a SQL Server 2005 Database.
    Could you tell me what tools (including PL/SQL) ORACLE offers to reach this goal?
    *.Dat files are still a way to perform this job or other method more performance (quickly and efficiently) are available?
    Using MS SSIS is better ?
    Thank for your help

    I've done getting data out of Oracle to MS Access DB using heterogenous servicing.I hope that that would be the best way for your case too..
    Check this out.
    http://www.datadirect.com/developer/odbc/oracle_heterogeneous/index.ssp
    Regards,
    Bhagat

  • How to retrive data from selected checkboxes with fieldnames

    hi experts,
    how to retrive data from selected checkboxes with fieldnames into another alv grid report.(here the fieldnames selected from  table names is dynamically).
    thankx in advance
    rani.k.

    Hi,
    Use user_command in the alv grid and then
    do the follwoing code
    FORM user_command1 USING lv_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Declaration of local Variables
      DATA : lv_ref1 TYPE REF TO cl_gui_alv_grid.
      DATA lv_cnt TYPE i.                                    "+INS SUHESH 12.07.2008
    Check function code
      CASE lv_ucomm.
        WHEN 'ONLI'.
          CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
            IMPORTING
              e_grid = lv_ref1.
          CALL METHOD lv_ref1->check_changed_data.
    now loop ur final internal table where check = 'X'.
    now pass data to other internal table..Now the internal table will be having values that the user selcetd on the screen.
    Hope this helps.
    Regards,
    Nagaraj

  • How to get data out of HP4145B to a PC through GPIB cable?

    I have some measurement data in a HP4145B. And I need to get the data out of it to my PC. Is there anyone who can help me with this? The labview version I'm using is 6.0

    There is a LabVIEW driver available for this instrument here. Download the one for version 6 and install it in your instr.lib folder. There is a Learn About Instrument Drivers page if you've never used one before.
    Message Edited by Support on 01-24-2007 05:07 PM

  • How to get data out of Vector of vector ???

    All,
    I have a vector v1 which is getting populated by the resultset of the database. This vector has another two vectors vrow & vcol .
    Code as follows ---
    v1 = new Vector();
    while(rs1.next()) {
         Vector vrow = new Vector();
         for (int i=intstartday ; i <= intendday ; i++)
         {     // here I am getting the new result set for each i //
              ResultSet rs2 = getResultSet();
              while(rs2.next()) {
                   Vector vcol = new Vector();
                   vcol.addElement(rs2.getString("day"));
                   vcol.addElement(rs2.getString("reg_hr"));
                   vcol.addElement(rs2.getString("dateday"));
                   vrow.addElement(vcol);
              rs2.close();                              
         } // for loop end
         vrow.addElement(strChargeNmbr);
         v1.addElement(vrow);                    
    } // end of rs1 resultset while loop
    I need to get the data out of this vector v1. If anyone has any insight on this - how to get the data from vectors which has differnt type of objects in it , please send me the code example asap.
    thanx

    Thanks for your suggestion. It is working now except that I am having problems in getting the charge NUmber out....Charge NUmber is nothing but a String.
    So my row Vector has two values
    1. Check the code where I am populating the Vectors
    while(rs1.next()) {
    strsubmittime = rs1.getString("SUBMIT_TS");
    strapprovetime = rs1.getString("APP_DIS_TS");
    strapprempid = rs1.getString("APP_DIS_EMP_ID");
    strChargeNmbr = rs1.getString("entered_cn");               
    Vector vLaborrow = new Vector();
    for (int i=intstartday ; i <= intendday ; i++)
    // here execute the query and get the result set for every i //                         ResultSet rs2 = getResultSet();
         while(rs2.next()) {
         Vector vLaborcol = new Vector();
         vLaborcol.addElement(rs2.getString("day"));
         vLaborcol.addElement(rs2.getString("reg_hr"));
         vLaborcol.addElement(rs2.getString("dateday"));
         vLaborrow.addElement(vLaborcol);
    } // for loop end
    vLaborrow.addElement(strChargeNmbr);
    vLabor.addElement(vLaborrow);
    } // end of rs1 resultset while loop
    2. check out the following code where I am trying to get the Charge NUmber values out.--
    for(int i=0;i<vLabor.size() ;i++)
    Vector rowVec = (Vector)vLabor.elementAt(i);
    for(int j=0; j< rowVec.size() -1 ; j++)
    try
         if (j==0) {
    String strChargeNmbr = (String)rowVec.elementAt(j) ;
    Vector laborcol = (Vector)rowVec.elementAt(j);
    String day = (String)laborcol.elementAt(0);
    String reg_hr = (String)laborcol.elementAt(1);
    String dateday = (String)laborcol.elementAt(2);
    strChargeNmbr = strChargeNmbr + " " + reg_hr ;
    }catch(ClassCastException e){
         System.out.println("Reading in vector2");
    } // end of j for loop
    System.out.println(strChargeNmbr);
    } // end of i for loop
    I am getting the following Exception --
    "Reading in vector2"
    Please send me the code -- how to get the Charge NUmber out. I am confused where to get the value - is it in the first for loop or second for loop ??

  • How get data from Web Service with token?

    Can I get data from Web Service made with Java?
    This WS has a Token.
    Any ideas o reference?
    Regards!
    Fran Díaz | twitter: @frandiaz_ | Blog: {geeks.ms/blogs/fdiaz/} | Communities: {onobanet.es} & {secondnug.com}

    We've now added this ability to Web.Contents. You can say something like
    Web.Contents("http://my.web.service/1", [Headers=[#"The-Token"="0a0138ef2d"]])
    and it will pass a header with the key "The-Token" and the value "0a0138ef2d" as part of the HTTP request. For security reasons, this will only work for anonymous web requests.
    The December preview can be downloaded from
    http://www.microsoft.com/en-us/download/details.aspx?id=39933&WT.mc_id=blog_PBI_Update_PowerQuery

  • I need to get data out of Oracle 8i??!!

    I am working for a company that is moving from one old application to a new application.
    The Old application is using Oracle 8i for a backend. I know SQL Server very well. However, I don't know Oracle.
    1) One guy on the forum helped me to find the SIDs and see the databases being run.
    2) I have also changed the password file and can now get in as internal.
    Great, but I need data.
    1) How can I get the data out of Oracle 8i?
    2) Is there a way to export the data to CSV or spreadsheet?
    3) There are 1400 tables with cryptic table names. How can I see the tables and their column names?
    (this is easy to do with SQL Server, but again, I am just starting to use Oracle).
    Thanks in advance for any and all help!!! This is crazy!

    Hello,
    No one likes a thread that goes on and on. I really appreciate those that try to help.
    I now this database is being used. However, we are trying to read the database and create reports before switching over to a new application.
    The database is in use.
    I've tried
    select table_name, column_name from user_tab_columns;
    I get over 15,000 rows of this
    TABLE_NAME COLUMN_NAME
    EXU81REFC ROWNER
    EXU81REFC RTNAME
    EXU81REFC CNAME
    EXU81REFC CNO
    EXU81REFC RCNO
    EXU81REFC ACTION
    EXU81REFC ENABLED
    EXU81REFC DEFER
    EXU81REFC PROPERTY
    EXU81REFC ROBJID
    EXU81REFC ROWNERID
    EXU81REFC REFTYPE
    EXU81REFI OBJID
    EXU81REFI OWNER
    EXU81REFI OWNERID
    EXU81REFI TNAME
    EXU81REFI ROWNER
    EXU81REFI RTNAME
    EXU81REFI CNAME
    EXU81REFI CNO
    EXU81REFI RCNO
    (none of which looks like user tables, but rather system tables)
    when I tried
    SELECT TABLE_NAME, NUM_ROWS FROM ALL_TABLES;
    I get over 1400 rows of this:
    TABLE_NAME NUM_ROWS
    CNBIL1
    CNBIL2
    CNBJR
    CNBJT
    CNBLC
    CNBLDE
    CNBLES
    CNBLK1
    CNBLK4
    CNBLLOG
    CNBLNET
    CNBLQ
    CNBLR
    CNBLR1
    CNBLRD
    CNBLRR
    CNBLRT
    CNBLRW
    CNBLTF5
    CNBLX
    CNBPC
    I've tried to do a select on a few table_names and I get "no rows selected".
    Isn't there a way in Oracle to see what tables have a rowcount > 0 and then get the table_names and column_names from those tables?
    I found the free download of TOAD, but not sure how much more that would help me than using SQL Plus at this stage of the game when I don't even see data. Maybe TOAD would help getting the data once I know where to look...I guess.
    Thanks for helping to straighten out with the confusion.

  • Need help getting data out of Berkeley DB

    Hi All
    I have an old vrsion of Berkeley Db (about 5 years old I think) that we use at work for storing key value pairs. We use this to store ids for that data that we later load to a relational database. We have multiple files with key vaue pairs. One particular file is very large(11 GB) and has about 100million entries.
    We are trying to migrate the data from Berkeley DB to a relational database. I was able to get the entries out of most files but this large file is givng trouble.
    I can only get out about 26 million entries. I have tried Ruby and Perl to get the data out (our main application is in Ruby) and tried multiple approaches but all hit the limit at about 26.xx million records.
    If anybody has experienced similar thing and knows a way to get the data out, your help is highly appreciated.
    Thank
    Harsh D.

    Hi All
    This is for Berkeley DB version that is at least 5 years old. I do not know the exact verion and do not know how to find one. This is not for the Java Edition or the XML edition.
    Below is what I am doing in Ruby:
    db = nil
    options = { "set_pagesize" => 8 * 1024,
    "set_cachesize" => [0, 8024 * 1024, 0]}
    puts "starting to open db"
    db = BDB::Btree.open(ARGV[0], nil, 0, options)
    if(db.size < 1)
    puts "\nNothing to dump; #{ARGV[0]} is empty."
    end
    puts "progressing with the db"
    myoutput = ARGV[1]
    puts "allocating the output file #{myoutput}"
    f = File.open(myoutput,"w")
    i = 0
    iteration = 0
    puts "starting to iterate the db"
    db.each do |k, v|
    a = k.inspect
    b = v.inspect
    f.puts "#{a}|#{b}"
    i = i+1
    if (i>1000000)
    iteration = iteration + 1
    puts "iteration #{iteration}"
    i = 0
    end
    end
    This only outputs about 26.xx million records. I am sures there are more than 50 million entries in the database.
    I also tried some other approaches but nothing seems to work. I end up getting only 26.xx million entries in the output.
    In some case, I managed to get it to output more records, but after 26.xx million, everything is output as duplicate entries so they are of no use to me.
    The Ruby is 32 bit version. I tried this on Windows 7 (64 bit) and also on RedHat Linux 5 (64 bit version).
    Thanks
    Harsh
    We ran db_stat on the ExpId database and below are the results
    ExpId
    53162 Btree magic number
    8 Btree version number
    Big-endian Byte order
    Flags
    2 Minimum keys per-page
    8192 Underlying database page size
    2031 Overflow key/data size
    4 Number of levels in the tree
    151M Number of unique keys in the tree (151263387)
    151M Number of data items in the tree (151263387)
    9014 Number of tree internal pages
    24M Number of bytes free in tree internal pages (68% ff)
    1304102 Number of tree leaf pages
    3805M Number of bytes free in tree leaf pages (64% ff)
    0 Number of tree duplicate pages
    0 Number of bytes free in tree duplicate pages (0% ff)
    0 Number of tree overflow pages
    0 Number of bytes free in tree overflow pages (0% ff)
    0 Number of empty pages
    0 Number of pages on the free list

  • How to insert data in a column with uniqueidefier data type

    Guys,
    I need insert data in a column with uniqueidefier data type, when i am trying to that getting error.
    error message says: "Conversion failed when converting from a character string to uniqueidentifier."
    I have data in table a col1,col2,col3,col4 - col3,col4 has datatype as varchar and i am updating table b columns col1,col2 with table a col3 and col4.
    Please guide how to do it.

    Hi,
    Not any String can be convert to uniqueidentifier.
    1. you have to make sure u use a value which is fir to be uniqueidentifier
    2. Use convert or cast in the insert query in order to convert the string into uniqueidentifier
    insert X ... convert(uniqueidentifier, 'string which fit to be convert to uniqueidentifier')
    Please post DDL+DML for more specific help
    DDL = Data Definition Language. In our case that is, CREATE TABLE statements for your tables and other definitions that are needed to understand your tables structure and there for let us to test and reproduce the problem in our server. Without DDL no one
    can execute any query.
    How to get DDL: Right click on the table in Object Explorer and select script table as CREATE. Post these create table scripts here.
    DML = data manipulation language is a family of queries used for manipulating the data it self like: inserting, deleting and updating data. In our case we need some sample data in order to check the query and get result, so we need some indert query for
    sample data.
    If you post a "create query" for the tables and "insert query" with some sample, then we could help you without Assuming/Guessing. There is a reason that DDL is generally asked for and expected when discussing query problems - it helps
    to identify issues, clarify terminology and prevent incorrect assumptions.  Sample data also provides a common point of reference for the discussion. A script that can be used to illustrate or reproduce the issue you have, will encourage others to help.
    [Personal Site] [Blog] [Facebook]

Maybe you are looking for