Hi Jon,

I'm not sure that I completely understand your problem, but I'll take a
stab at it anyway ;-)

You should use the isdefined() function to make sure that the
values/variables exist. If they don't, then use <cflocation>
to send them to the page where they should initially be defined. 

To continuously pass the form params through your series of pages, you
could do it through url vars
or through hidden form fields. Using hidden form fields will prevent the
user from tampering with
the data, which is what I prefer. Another method would be to use session
or client vars.

Also, make sure you always scope your variables: #url.myvariable#,
#variables.myvariable# and so on...

HTH!!!

- Gary

-----Original Message-----
From: CF_JONNY [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 10:58 AM
To: CF-Talk
Subject: <<>> URL Var Passing Issue...Under the gun...again...!


Newbie Question......

I need to pass 2 URL Vars to pre fill an insert form.

>From the Detail Page;

PreID and PreEM are form a display table that is generated from the same
URL.PreID passed from a master page.

<a href="Ins_Blah.cfm?PreID=#URL.PreID#&#preEM#">add Extra info</a>

The next Insert Form;

Do I need to do an IsDefined() to get the passed VARs to pre fill 2 of
the 3
fields?
I need 2 to be filled and one to be blank for input.  The need to be
filled
so the person can keep track of what he is doing.


<td>
<cfoutput>
              <input type="text" name="PreID"
Value="#URL.PreID#"></cfoutput>
</td>


Any suggestions???

Thanks

JON



______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to