|
|
 |
FN-FORUM: Sorry, I'm back again ..... anyone any experience of Fabrik Component in Joomla? .. or maybe its just the php I've screwed up!
date posted 9th May 2008 13:44
OK, things are working great now on the form, but now the client has asked
for additional information that is currently being emailed, to be added to
the database (previously only certain fields were stored).
Code I've got on the form is further down.
The thing is when I try to get the additional fields (or even one of them!)
to be added to the database, nothing is being added, so I am obviously
missing something somewhere, and its really frustrating me.
Thanks for taking the time to read the email.
Allan
function checkForm() {
alert(document.requestForm.myframe.width);
if (document.requestForm.email.value=='') {
alert("Please enter your Email!");
return false;
}
if (document.requestForm.Postcode.value=='') {
alert("Please enter your Postcode!");
return false;
}
if (document.requestForm.query.value=='') {
alert("Please enter your Query!");
return false;
}
if (!document.requestForm.Terms.checked) {
alert("You must agree to the terms");
return false;
}
return true;
}
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=400,height=600,scrollbars=yes');
return false;
}
//-->
|
 |
|