Go Back   Technibble Forums > Advertising & Marketing > Website Development & SEO

  Technibble Sponsor

Reply
 
Thread Tools Display Modes
  #1  
Old 02-29-2012, 10:02 AM
DominoITSolutions's Avatar
DominoITSolutions DominoITSolutions is offline
 
Join Date: Jan 2012
Location: South Africa
Posts: 33
DominoITSolutions is an unknown quantity at this point
Send a message via Skype™ to DominoITSolutions
Default Urgent Help!!!

Hey guys I need urgent help with doing a contact form on my website for some odd reason it wonít send an email from my site to my email inbox! Is there anyone that has experience with this sort of problem and would they please share their knowledge with me!

I am using Dreamweaver CS5.
My website is www.dominoitsolutions.org
Please let me know...

Regards,
Marcel
Reply With Quote
  #2  
Old 02-29-2012, 10:38 AM
EirianPrice's Avatar
EirianPrice EirianPrice is offline
 
Join Date: Feb 2012
Location: Mold, North Wales, UK
Posts: 44
EirianPrice is an unknown quantity at this point
Send a message via Skype™ to EirianPrice
Default

Where did you get the contact form from? im assuming its a php contact form, did you write it yourself?
__________________
Computer repairs Chester
Reply With Quote
  #3  
Old 02-29-2012, 05:11 PM
Thorstein's Avatar
Thorstein Thorstein is offline
 
Join Date: Nov 2010
Location: Roanoke Rapids, NC, USA
Posts: 43
Thorstein is an unknown quantity at this point
Send a message via Skype™ to Thorstein
Default Using HTML forms to collect user data

This link my help. Link.
Reply With Quote
  #4  
Old 02-29-2012, 05:23 PM
14049752 14049752 is offline
 
Join Date: Mar 2008
Posts: 3,314
14049752 has a spectacular aura about14049752 has a spectacular aura about
Default

"Urgent Help!!!" Really? That seems a bit dramatic when something like "Contact form for my website won't work" would have sufficed.



But, I digress...

Just a very quick glance at your site, it looks like you have the actual form...but nothing to handle the action of actually submitting it? The forms.js that your code references doesn't seem to be where it says it will be.


Here's another page to help you out. http://www.html-form-guide.com/conta...tact-form.html

There are a few different ways you can do this.
If you have the file you reference, you could make sure it's where it belongs...or you could use cgi or php to do the same thing with a little change to your code.
Reply With Quote
  #5  
Old 03-01-2012, 05:38 AM
DominoITSolutions's Avatar
DominoITSolutions DominoITSolutions is offline
 
Join Date: Jan 2012
Location: South Africa
Posts: 33
DominoITSolutions is an unknown quantity at this point
Send a message via Skype™ to DominoITSolutions
Default

@EirianPrice I got it with my template.
@Thorstein thank you for the link...
@14049752 well thought I would get quicker help with my title haha u are right should have said Contact form for my website won't work but hey got your attention. It seems to be in the right spot thatís what I donít get...the small thing is really annoying me!!! I had a look at the link and it is helpful but still I can't figure out why mine is not working!
Reply With Quote
  #6  
Old 03-01-2012, 06:46 AM
rsarceno's Avatar
rsarceno rsarceno is offline
 
Join Date: Jul 2011
Location: Elk Grove, CA
Posts: 982
rsarceno will become famous soon enough
Default

Quote:
Originally Posted by DominoITSolutions View Post
well thought I would get quicker help with my title .... but hey got your attention.
Remember the boy who cried wolf !

Where this you get the java script www.dominoitsolutions.org/forms.js? This is what get executed when someone press submit button. Post the content of forms.js
Reply With Quote
  #7  
Old 03-01-2012, 08:14 AM
DominoITSolutions's Avatar
DominoITSolutions DominoITSolutions is offline
 
Join Date: Jan 2012
Location: South Africa
Posts: 33
DominoITSolutions is an unknown quantity at this point
Send a message via Skype™ to DominoITSolutions
Default

@rsaceno this is the code from the forms.js

(function($){
$.fn.extend({
forms:function(opt){
if(opt===undefined)
opt={}
this.each(function(){
var th=$(this),
data=th.data('forms'),
_={
errorCl:'error',
emptyCl:'empty',
invalidCl:'invalid',
successCl:'success',
successShow:'4000',
mailHandlerURL:'bin/MailHandler.php',
ownerEmail:'Marcel.Smal@dominoitsolutions.org',
stripHTML:true,
smtpMailServer:'localhost',
targets:'input,textarea',
controls:'a[data-type=reset],a[data-type=submit]',
validate:true,
rx:{
".name":{rx:/^[a-zA-Z'][a-zA-Z-' ]+[a-zA-Z']?$/,target:'input'},
".state":{rx:/^[a-zA-Z'][a-zA-Z-' ]+[a-zA-Z']?$/,target:'input'},
".email":{rx:/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i,target:'input'},
".phone":{rx:/^\+?(\d[\d\-\+\(\) ]{5,}\d$)/,target:'input'},
".fax":{rx:/^\+?(\d[\d\-\+\(\) ]{5,}\d$)/,target:'input'},
".message":{rx:/.{20}/,target:'textarea'}
},
preFu:function(){
_.labels.each(function(){
var label=$(this),
inp=$(_.targets,this),
defVal=inp.val(),
trueVal=(function(){
var tmp=inp.is('input')?(tmp=label.html().match(/value=['"](.+?)['"].+/),!!tmp&&!!tmp[1]&&tmp[1]):inp.html()
return defVal==''?defVal:tmp
})()
trueVal!=defVal
&&inp.val(defVal=trueVal||defVal)
label.data({defVal:defVal})
inp
.bind('focus',function(){
inp.val()==defVal
&&(inp.val(''),_.hideEmptyFu(label),label.removeCl ass(_.invalidCl))
})
.bind('blur',function(){
!inp.val()
?inp.val(defVal)
_.isValid(label)
?_.showErrorFu(label)
:_.hideErrorFu(label)),
(_.isEmpty(label)
?_.showEmptyFu(label)
:_.hideEmptyFu(label))
})
.bind('keyup',function(){
label.hasClass(_.invalidCl)
&&_.isValid(label)
?_.showErrorFu(label)
:_.hideErrorFu(label)
})
label.find('.'+_.errorCl+',.'+_.emptyCl).css({disp lay:'block'}).hide()
})
_.success=$('.'+_.successCl,_.form).hide()
},
isValid:function(el){
var ret=true,
empt=_.isEmpty(el)
if(empt)
ret=false,
el.addClass(_.invalidCl)
else
$.each(_.rx,function(k,d){
if(el.is(k))
d.rx.test(el.find(d.target).val())
?(el.removeClass(_.invalidCl),ret=false)
:el.addClass(_.invalidCl)
})
return ret
},
isEmpty:function(el){
var tmp
return (tmp=el.find(_.targets).val())==''||tmp==el.data(' defVal')
},
validateFu:function(){
_.labels.each(function(){
var th=$(this)
_.isEmpty(th)
?_.showEmptyFu(th)
:_.hideEmptyFu(th)
_.isValid(th)
?_.showErrorFu(th)
:_.hideErrorFu(th)
})
},
submitFu:function(){
_.validateFu()
if(!_.form.has('.'+_.invalidCl).length)
$.ajax({
type: "POST",
url:_.mailHandlerURL,
data:{
name:$('.name input',_.form).val()||'nope',
email:$('.email input',_.form).val()||'nope',
phone:$('.phone input',_.form).val()||'nope',
fax:$('.fax input',_.form).val()||'nope',
state:$('.state input',_.form).val()||'nope',
message:$('.message textarea',_.form).val()||'nope',
owner_email:_.ownerEmail,
stripHTML:_.stripHTML
},
success: function(){
_.showFu()
}
})
},
showFu:function(){
_.success.slideDown(function(){
setTimeout(function(){
_.success.slideUp()
_.form.trigger('reset')
},_.successShow)
})
},
controlsFu:function(){
$(_.controls,_.form).each(function(){
var th=$(this)
th
.bind('click',function(){
_.form.trigger(th.data('type'))
return false
})
})
},
showErrorFu:function(label){
label.find('.'+_.errorCl).slideDown()
},
hideErrorFu:function(label){
label.find('.'+_.errorCl).slideUp()
},
showEmptyFu:function(label){
label.find('.'+_.emptyCl).slideDown()
_.hideErrorFu(label)
},
hideEmptyFu:function(label){
label.find('.'+_.emptyCl).slideUp()
},
init:function(){
_.form=this
_.labels=$('label',_.form)

_.preFu()

_.controlsFu()

_.form
.bind('submit',function(){
if(_.validate)
_.submitFu()
else
_.form[0].submit()
return false
})
.bind('reset',function(){
_.labels.removeClass(_.invalidCl)
_.labels.each(function(){
var th=$(this)
_.hideErrorFu(th)
_.hideEmptyFu(th)
})
})
_.form.trigger('reset')
}
}
if(!data)
(typeof opt=='object'?$.extend(_,opt):_).init.call(th),
th.data({cScroll:_}),
data=_
else
_=typeof opt=='object'?$.extend(data,opt):data
})
return this
}
})
})(jQuery)
$(function(){
$('#contact-form').forms({
ownerEmail:'#'
})
})
Reply With Quote
  #8  
Old 03-01-2012, 09:39 PM
rsarceno's Avatar
rsarceno rsarceno is offline
 
Join Date: Jul 2011
Location: Elk Grove, CA
Posts: 982
rsarceno will become famous soon enough
Default

1) Are you running PHP? You need it for this to work

2) The line smtpMailServer:'localhost' means you running SMTP services. Are you running SMTP service locally? if not enable it or try google

smtpMailServer:'smtp.gmail.com'

you also need to setup the following option
Authentication: Yes
Use TLS port 587 or SSL 465
Account name: yourname@gmail.com
Password: yourpassword


3) If your using IIS, BIN folders are sometimes not visble
copy bin/Mailhandler.php to somthing like mail/Mailhandler.php

Search in the forms.js and replace

mailHandlerURL:'bin/MailHandler.php',

with

mailHandlerURL:'mail/MailHandler.php',

Last edited by rsarceno; 03-01-2012 at 09:52 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Technibble.com is based out of MELBOURNE, AUSTRALIA.