> In the form I am creating, sometimes the user would be presented with a link
> to enroll themselves
> (This would happen before the actual form submission). So, when they click
> that which takes them
> to another form, those form fields should get prepoulated with the form
> fields that I need to pass from
> current form. As I said I was using URL, but due to security concerns, I have
> to use form variables to
> post data.
If you can use JavaScript, you can have your link trigger a JavaScript
function that changes the action of the form, then submits the form:
<a href="javascript:enroll()">Enroll</a>
...
<script language="JavaScript">
function enroll()
{
document.forms[0].action = "enroll.cfm";
document.forms[0].submit();
}
</script>
Alternatively, you could have the link set a form field value, then
use CF in your action page to check for the existence of the form
field value, and show the user the appropriate results in either case.
You could just have a checkbox for this.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322450
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4