Forums

Send field to url

labp2 29 Mar, 2008
Hi!! Once again: Thanks for this great component!!

I think what I want is simple and easy..

I want to put the fields results in a url, like that:

http://mysite.com/index2.php?option=com_anothercomponent&no_html=0&fieldname=fieldresult

I think I can do that in Submit URL, but I don't get how to do it.

Thank you in anticipation,
Luis Pacheco
GreyHead 29 Mar, 2008
Hi Luis,

You can do something like this in the 'OnSumbit after email' box (turn email off in the General tab):
<?php
mosRedirect('http://mysite.com/index.php?option=com_chronocontact&chronoformname=MyForm&fieldname='.$_POST['fieldresult']);
?>
I don't think that you can re-write the OnSubmit Url on the fly.

Bob
This topic is locked and no more replies can be posted.