Hi there,
Is there a way I can link to a joomla article - and in the link have a hidden/url form element that is transferred to the form and then emailed with the form when submitted?
ie... <!-- w --><a class="postlink" href="http://www.mysite.com.au/book.htm?type=regular">www.mysite.com.au/book.htm?type=regular</a><!-- w --> booking
or www mysite.com/book.htm?type=super_booking
and then when the "booking" form on book.htm is submitted, either regualar_booking or super_booking are passed through depending on the original link clicked.
Hope that makes sense..
Cheers
Chumby
Any ideas?
Appreciate the help...
Cheers
Chumby
Hi Bob,
Thanks for this... but not sure where this code goes. Is it on the page linking to the form on another page?
Cheers
Chumby
Hi chumby,
In the Form HTML in CFv3 or a Custom Element in CFv4.
Bob
Ok Bob,
I am using CF V4 so will put it in there.
What does the link look like from the page that gets me to the form?
eg
<!-- w --><a class="postlink" href="http://www.mysite.com/link_to_page_with_form?option=1">www.mysite.com/link_to_page_with_form?option=1</a><!-- w -->
<!-- w --><a class="postlink" href="http://www.mysite.com/link_to_page_with_form?option=2">www.mysite.com/link_to_page_with_form?option=2</a><!-- w -->
<!-- w --><a class="postlink" href="http://www.mysite.com/link_to_page_with_form?option3">www.mysite.com/link_to_page_with_form?option3</a><!-- w -->
where link_to_page_with_form is the Joomla article where the form is stored.
Thanks
Chumby
Hi chumby,
It will look like the examples you posted earlier example.com/link_to_page_with_form/?type=regular or possibly example.com/link_to_page_with_form&type=regular depending on whether there is already a ? in the link_to_page_with_form part.
Bob
Hi chumby,
Only if you have lots of links or menu entries I suspect. I was just following your request to link with a URL. It might be better here to pick up the article id?
Bob
Sorry Bob,
Don't quite get you mean there....
Cheers
Chumby
Hi Chumby,
You started out saying that you wanted to use URLs like <!-- w --><a class="postlink" href="http://www.mysite.com.au/book.htm?type=regular">www.mysite.com.au/book.htm?type=regular</a><!-- w --> booking but now you seem to want something different?
Bob
Ok thanks Bob... didnt think it would be that simple.
So when the form is submitted, the type variable can be emailed through also?
I have also linked to embedded forms in articles... is there a better way to do it?
Cheers
Chumby
Hi Chumby,
1) Yes - see my post way back at the beginning of this thread.
2) Yes - you can use the direct link to the form. This is preferred unless you really need to embed the form in an article.
Bob