JavaSonics

SDK

ListenUp Example


Web Home

SDK Home

Docs

Test PHP

Test ASP

Test ASP.NET

Examples

Demos

Download

Purchase

Support

Forum

Login

Contact Us

Company


JavaSonics ListenUp is no longer for sale.

Text Fields for User Data Entry

You can define text fields in the ListenUp applet. The user can enter information that will be sent to the server along with the audio recording.

<!-- Set width for label column so fields line up. -->
<param name="minFieldLabelWidth" value="70"> <!-- Define custom text entry fields. -->
<param name="fieldName_1" value="comment">
<param name="fieldLabel_1" value="Comment:">
<param name="fieldDefault_1" value="enter comment here"> <param name="fieldName_2" value="user_name"> <param name="fieldLabel_2" value="Name:">
 <!-- Use a big text area for long messages. -->
 <param name="fieldName_3" value="message">
 <param name="fieldLabel_3" value="Message:">
 <param name="fieldRows_3" value="10">
 <!-- Hidden field that will not appear to user but
             will be passed to server. Hidden because zero rows. -->
 <param name="fieldRows_4" value="0">
 <param name="fieldDefault_4" value="AW007315">
 <param name="fieldName_4" value="customer_id">

These values can then be used in your scripts just like any FORM variable. For example, in PHP, to get the "user_name":

    $userName = strip_tags($_POST[user_name]); 

If you see this text then Java is disabled in your browser. Please download the Sun Java Plugin from "www.sun.com".

If you click Send when running off your local hard disk then you will probably see an error about not being able to connect. That is because you need to post to an actual web server.


© 2001-2006 Mobileer, Inc.   This page is from the ListenUp SDK. You can download the SDK from here.