Forums

Passing parameters

paulsmithx 30 Apr, 2013
Hi there,
I've just looked quickly through the cookbook and the answer wasn't obvious. I need to be able to email to a user a url that contains information for partial completion of a form and then have them fill in the rest of the details.

Can someone please point me in the direction of some instructions (or a sample form) as to how I can read parameters passed to the form in the url?
Thanks
Paul
GreyHead 02 May, 2013
Hi Paul,

ChronoForms v4 will automatically read the URL and copy and parameters in it into the $form->data array. The Show HTML action will then populate any form inputs with matching names with these values.

Bob
paulsmithx 02 May, 2013
Thanks Bob.

Can I use the parameter passed to retrieve a record from the database and display it on the form, or does it happen once the form is already loaded and formatted.

(apologies if that's a basic html/php question - can you tell I'm from the desktop world?)

Many thanks
Paul
GreyHead 02 May, 2013
Hi Paul,

Yes absolutely, that's how the DB Record Loader is set up to work.

Bob
paulsmithx 02 May, 2013
Great!
Thanks again, will give it a go.
-p
This topic is locked and no more replies can be posted.