View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
The HTML code you pasted in your message does not contain a field named "FormName", so, unless one exists in the omitted section, Request.Form("FormName") should return an empty string.

By the way, I strongly recommend that you enclose all HTML attribute values in quotes, even if they don't include spaces.  It's too easy to make a mistake if you don't.  Here's an example:

<FORM id="Form1" name="addmember" action="addmember.fwx" method="post">
FoxWeb Support Team
support@foxweb.com email
Sent by George Gambill on 11/23/2007 08:26:09 AM:
 I have a form (addmember.fwx) which (for test purposes) starts out with some VFP code to capture the iniformation returned by Request.Form("FormName").

 

The form has a button (<INPUT id=btnSubmit type=submit ...>) designed to reload the form through the action=addmember.fwx parameters of the Form tag.

 

For some reason Request.Form("FormName") returns an “O” (no quotes) as if I were asking for the type() of a object instead of the expected “admember” (no quotes).

 

Also, as a side bar, the command repl test2 with dtoc(date()) returns an “O” (no quotes).

 

Any suggestions???

 

 

The relevant code is :

<%

m.l_FormName = Request.Form("FormName")

 

if not used('test')

sele 0

use test

repl test1 with m.l_FormName && the test1 files is a memo field

repl test2 with dtoc(date()) && the test1 files is a memo field

use

endif

 

%>

 

<HTML><HEAD><TITLE>Add Member</TITLE>

<BODY>

<FORM id=Form1 name=addmember action=addmember.fwx method=post>

.

.

.

<P><INPUT id=btnSubmit type=submit value="Add Member" name=btnSubmit></P>