Nope, typo. Error still occurs with corrected code


Kola


-----Original Message-----
From: Gaulin, Mark [mailto:[EMAIL PROTECTED]
Sent: 21 January 2004 16:51
To: CF-Talk
Subject: RE: Null pointers error on CFMX 6.1


In the first if block I see an isdefined() test for "form.test" but a
usage
of the variable "form.thetest". Is this intentional?

-----Original Message-----
From: Kola Oyedeji [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 21, 2004 11:27 AM
To: CF-Talk
Subject: Null pointers error on CFMX 6.1

Hi

We are using CFMX 6.1 (an upgrade from 6) and the following code:

<cfif isdefined("form.test")>
<CFQUERY NAME="q_insert" DATASOURCE="#Request.datasource#">
insert into table1 (thetest) values ('#form.thetest#')
</CFQUERY>
</cfif>

<CFQUERY NAME="q_get_all" DATASOURCE="#Request.datasource#">
select thetest from table1
</CFQUERY>

<form name="d" action="" method="post">
<textarea name="thetest" rows="20" cols="50"></textarea>
<br>
<input type="Submit">
</form>

Produces the following error:

"The system has attempted to use an undefined value, which usually
indicates a programming error, either in your code or some system code.

Null Pointers are another name for undefined values.
Produces the following error."

I have trawled through numerous archives and found numerous references
to this prior to 6.1 but none of them seem to be exactly the same as
this.

Any pointers (excuse the pun) appreciated

Thanks

Kola Oyedeji
Certified Advanced Coldfusion Developer,
ICLP London
DDI: +44 (0) 208 256 9034 (Ex.2204)

www.iclployalty.com
  _____
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to