On 15 Aug, 10:35, "phil1943" <webforumsu...@xxxxxxxxxxxxxx> wrote:
> Hello, I am setting up a basic shopping cart.
> Upon (form) submission of an "add to cart" button I get an undefined variable
> This is because the "add to cart" form is submitting to "thispage" i.e
> which contains an invoked database search function.
> That search function relies on an externally provided keyword which is passed
> from another webpage upon the first load of that page.
> How can I make that externally submitted variable exist for the duration of
> multiple reloads of that page ie. each time the "add to cart" buttons are
> submitted ?
> thanks kindly for any help.
If this "externally provided keyword" must have a value use hidden
field in the form with the same name and populate it with keyword
<cfparam name="form.keywordName" default="#url.keywordName# />
<input type="hidden" name="keywordName" value="#form.keywordName#" />