$return_link doesn't contain the full URL to fmbadhandler
Hi,
When not all required fields are filled in, fmbadhandler handles this.
But in the $return_link the path to fmbadhandler is only partially set.
This is the $return_link:
Code:
http://templates/HB-home/forms/fmbadhandler.php?bad_state=1&this_form=http%3A%2F%2Fhb.vuyk.eu%2Fnl%2Fcontact-met-uw-tuinman-hovenier-uit-drenthe%2Fcontactformulier%2F&bad_template=http%3A%2F%2Fhb.vuyk.eu%2Fnl%2Fonvolledige-contactaanvraag%2F&error=Sommige+ingevulde+waarden+waren+niet+in+orde+en+de+site+gaf+deze+melding%3A+&extra=vul+het+e-mail+adres+juist+in+a.u.b.%0Avul+uw+bericht+in+a.u.b.%0A&errcode=&isusererror=1&alerted=0&erroritem1=vul+het+e-mail+adres+juist+in+a.u.b.&erroritem2=vul+uw+bericht+in+a.u.b.&zend_naam=Arno+Vuyk&zend_adres=&zend_postcode=&zend_plaats=&zend_telefoon=&zend_email=&zend_bericht=&zend_zend=verzend&vuyk=9b0675dc3edc5fdb1508e863ede6cabb
The domain name is missing.
How could I set this URL?
Thanks!
Re: $return_link doesn't contain the full URL to fmbadhandler
Hi,
In the FormMail configuration section, set PUT_DATA_IN_URL to false: http://www.tectite.com/fmdoc/put_data_in_url.php
Re: $return_link doesn't contain the full URL to fmbadhandler
Hi, thanks for your reply
I've set the PUT_DATA_IN_URL to false, this abbreviates the $return_link to:
Code:
templates/HB-home/forms/fmbadhandler.php?bad_state=1&insession=1&vuyk=9b0675dc3edc5fdb1508e863ede6cabb
However, the domainname still is not prepended and the browser gives "server not found" when clicking on the $return_link.
Is there a setting that manages the format of $return_link?
Re: $return_link doesn't contain the full URL to fmbadhandler
Hi,
You probably haven't set the "this_form" field.
Make sure you follow the HOW TO guide: http://www.tectite.com/fmhowto/adverror.php
Re: $return_link doesn't contain the full URL to fmbadhandler
Hi,
No, in my form I have the hidden field
Code:
<input name="this_form" type="hidden" value="http://hb.vuyk.eu/nl/contact-met-uw-tuinman-hovenier-uit-drenthe/contactformulier/" />
That should work I think.
Is there no other setting that manages the format of $return_link?
Re: $return_link doesn't contain the full URL to fmbadhandler
Hi,
Make sure you use a full URL to fmbadhandler in the "bad_url" field.
Re: $return_link doesn't contain the full URL to fmbadhandler
Hi,
This is the setting:
Code:
<input name="bad_url" type="hidden" value="http://hb.vuyk.eu/templates/HB-home/forms/fmbadhandler.php" >
I got the $return_link working by hardcoding the URL of fmbadhandler in fmbadhandler.php line 1162
and replaced
Code:
$s_url = $sThisScript.($b_quest ? "&" : "?")."bad_state=1&$sQueryString";
by
Code:
$s_url = "templates/HB-home/forms/fmbadhandler.php?bad_state=1&$sQueryString";
however, this is a bit dirty and might break other things?