Hi,
Thanks for all the help on this forum. I ordered the Chronoforms book this week and can't wait to get it. In the meantime I am using the e-version.
I am trying to post data from a form into an article. The form collects a list of files (from a checkbox field) that the user wants to download. The files are stored and accessible through Remository.
I am using the redirect URL after submit to send the user to the article. I'm using DirectPHP to allow php in the article. The article starts with:
and what I get is:
I first tried a multi-page form, where the 2nd page got the posted data and displayed the document download list, but when I go to a download link, and then try to return to the (last form) page to get the next document link, I get warned about resubmitting all the form data, and then I get a blank page.
Thanks again for all your help. I never would have gotten this far without it.
Thanks for all the help on this forum. I ordered the Chronoforms book this week and can't wait to get it. In the meantime I am using the e-version.
I am trying to post data from a form into an article. The form collects a list of files (from a checkbox field) that the user wants to download. The files are stored and accessible through Remository.
I am using the redirect URL after submit to send the user to the article. I'm using DirectPHP to allow php in the article. The article starts with:
<?php
if ( !$mainframe->isSite() ) {return;}
$session =& JFactory::getSession();
$posted = $session->get('posted');
if(isset($_POST)) {
echo '$_POST is set<br />';
print_r($_POST);
echo "<br />";
}
else {echo '$_POST is NOT set<br />'; }
and what I get is:
$_POST is set
Array ( )
I first tried a multi-page form, where the 2nd page got the posted data and displayed the document download list, but when I go to a download link, and then try to return to the (last form) page to get the next document link, I get warned about resubmitting all the form data, and then I get a blank page.
Thanks again for all your help. I never would have gotten this far without it.
Hi dnigra,
The Post data is sent to ChronoForms and then expires so the $_POST array is correctly empty in the article.
You could add the data to the ReDirect URL (use the ReDirect Plug-in for this) and then recover it back from the $_GET array; or, perhaps better, you could create the whole article in the ChronoForms onSubmit afer box and display the results there.
Bob
The Post data is sent to ChronoForms and then expires so the $_POST array is correctly empty in the article.
You could add the data to the ReDirect URL (use the ReDirect Plug-in for this) and then recover it back from the $_GET array; or, perhaps better, you could create the whole article in the ChronoForms onSubmit afer box and display the results there.
Bob
Hi GreyHead,
I want users to be able to move back and forth between the file list created on form submission and Remository to download the files they want. The files can be in several different directories.
When I use the onSubmit after code to create the "article" containing the file list, click one, am taken to the download page, then use the browser back button to return to the list (to get the next file link), I get "You are not allowed to access this URL." I'm assuming that's correct, users should not be able to jump into the after submit code page.
I'll try using the redirect URL as you suggested. Thanks again,
DNigra
I want users to be able to move back and forth between the file list created on form submission and Remository to download the files they want. The files can be in several different directories.
When I use the onSubmit after code to create the "article" containing the file list, click one, am taken to the download page, then use the browser back button to return to the list (to get the next file link), I get "You are not allowed to access this URL." I'm assuming that's correct, users should not be able to jump into the after submit code page.
I'll try using the redirect URL as you suggested. Thanks again,
DNigra
This topic is locked and no more replies can be posted.