Re: (Webserver3.0) Copying the HTML.Form field value into a oracle variable.

From: <shjejurkar_at_yahoo.com>
Date: 1999/03/02
Message-ID: <7bhh2i$dfi$1_at_nnrp1.dejanews.com>#1/1


The first part is pretty simple actually. For example:

procedure x is
tName varchar2(50);

begin
 tName := 'Print this';
 htp.prn('

 <HTML>
 <HEAD>
 <SCRIPT LANGUAGE="JavaScript"

 function ftest()
 {
   document.write("' || -- not the end of string  tName ||
 ' ");
 </SCRIPT>
 </HEAD>
 <BODY>
 <FORM ......>
 <INPUT TYPE="TEXT" NAME="Name">

 ');
end;

In article <kXEC2.5$pk7.312088_at_news.cwi.net>,   "ad" <aravind.doma_at_cwusa.com> wrote:
> Oracle Guru's,
> Here's one for you.
>
> Is there a way to copy a HTML.FORM field value into a oracle variable? and
> Is it possible to access a oracle variable from a javascript?
>
> Procedure X Is
> tName Varchar2(50);
>
> Begin
> htp.prn('
> <HTML>
> <HEAD>
> <SCRIPT LANGUAGE="JavaScript"
> function ftest()
> {
> Can i access tName here? If so how?
> }
>
 ........
> //Is it possible to access the value from the above input field (Name) into
> the
> oracle variable tName decalred above? If so how?

If you want to access the input field before the form is "submitted" back to the server, use javascript. After the form is submitted, you will get the value of the field as a parameter of the "action" procedure that you specify for the form.

HTH,
Sameer

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Mar 02 1999 - 00:00:00 CET

Original text of this message