From - Sat Jun 14 22:56:26 1997
Path: world1.bellatlantic.net!out2.nntp.cais.net!news2.cais.com!in1.nntp.cais.net!news.his.com!news.lightlink.com!hunter.premier.net!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.internetmci.com!news.wwa.com!not-for-mail
From: Wef <wef@miso.wwa.com>
Newsgroups: comp.lang.javascript
Subject: [Q] - Form INPUT Values and Inserting Cookies??!!??
Date: Mon, 02 Jun 1997 16:19:13 -0500
Organization: WorldWide Access (tm) - Midwestern Internet Services http://www.wwa.com
Lines: 36
Message-ID: <339338D1.2510@miso.wwa.com>
Reply-To: wef@miso.wwa.com
NNTP-Posting-Host: pool1-049.wwa.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.01Gold (Win95; I)

I'm trying to make a HTML doc that loads cookie stored values into
specific form fields...  If the docs pulls a cookie, then the cookie
value goes into the VALUE portion of the form INPUT tag...  It hasn't
worked for me yet...

Here is what I thought would work... (Don't fret about the getCookie
function...)

<CODE>
function show_name() {
        if(getCookie(cookieName) != null) {
        var cookieval = getCookie(cookieName);
        document.write("<input type=text name=\"name\" value=cookieval
size=30><---Your Name<br>");
        }
        else document.write("<input type=text name=\"name\"
size=30><---Your Name<br>");
}
</CODE>

Using the above code, all I get in the appropriate INPUT field is :
"cookieval"...
I've tried all sorts of quoting (" ' and \") but nothing seems to
work...
I've tried value=getCookie(cookieName) and that spits out :
"getCookie(cookieName)" in the INPUT field...

I'm getting the feeling that I'm trying to accomplish the impossible...

Am I wrong? Or will one of you brilliant types help me out??????

---
Wef
wef@miso.wwa.com
http://miso.wwa.com/~wef/mk

