Please replace the ??? with your data!
- URL to the FORM: http://http//highperformancemotorsports.com/index……cf_field_4
- The browser used: firefox
- cforms version: 11
- Your Wordpress version: 2,7
I have created a non-AJAX form on a page with a URI of:
When I submit the form, the default action is to redirect to:
I tracked this problem to the get_current_page function in lib_aux.php
$page = $_SERVER['REQUEST_URI'];
if ($clean && strpos($page,'?')>0)
$page = substr( $page, 0, strpos($page,'?'));
$page = (trim($page)=='' || strpos($page,'lib_ajax.php')!==false )?$_SERVER['HTTP_REFERER']:trim($page); // for ajax
Using the REQUEST_URI for the form action URI will only work if the form is on a page with a permalink. It will not work on a page with a page_id asthe REQUEST_URI contains no query string information.
Perhaps I am not understanding the application, but I can think of no situation where you would NOT want to redirect to the HTTP_REFERER URI.
Has anyone else experienced this problem?
Thanks for the help!
I have a very similar problem.
Trying to make two language work with query strings like ?lang=en (for english and ?lang=es for spanish I found that when submiting form with errors (NO AJAX) the return path or url is the one without the query string language.
See it in action:
if you submit it empty the refresh url comes without the language querystring
Any help please?
Most Users Ever Online: 959
Currently Browsing this Page:
Guest Posters: 3731
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6400), Nicky (3)