php mailform problem

This is a discussion on "php mailform problem" within the PHP Forum section. This forum, and the thread "php mailform problem are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Aug 13th, 2007, 14:48
New Member
Join Date: Aug 2007
Location: uk
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Question php mailform problem

I've just uploaded a website and when I fill in the form and then click submit it should load feedback.php and send the mail to the user and say thank you etc. What i'm getting is 'this URL cannot be found feedback.php'

Now I tried this locally on my machine with PHP and it seemed to work fine. My host (webfusion) seems to say on their site that PHP is supported on the starter pack under Linux hosting but NOT Windows hosting. I have gone for the Linux hosting so this should be ok. Any ideas?

Just to make sure i'm not been stupid, I shouldn't need SQL to support a php mailform, just PHP on their server right? Here's the link to the package I went for....

http://www.webfusion.co.uk/webhostin...starter-linux/

Is this ok for what I need?
Reply With Quote

  #2 (permalink)  
Old Aug 13th, 2007, 14:54
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 720
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Yea as long as you've got PHP enabled it shoudl be fine.

Firstly, ar4e you getting the email that it should send?

You need to work pout where in the script it is going wrong. So if you've got the email then its just the redirection thats wrong in which case its probably a simple error in the link.

Try using an absolute URL rather than a relative one.

Fee free to post up your code on here for us to take a look.
Reply With Quote
  #3 (permalink)  
Old Aug 13th, 2007, 14:58
New Member
Join Date: Aug 2007
Location: uk
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Quote:
Originally Posted by 1840dsgn View Post
Yea as long as you've got PHP enabled it shoudl be fine.

Firstly, ar4e you getting the email that it should send?

You need to work pout where in the script it is going wrong. So if you've got the email then its just the redirection thats wrong in which case its probably a simple error in the link.

Try using an absolute URL rather than a relative one.

Fee free to post up your code on here for us to take a look.
First of all, thanks for the quick reply. Really good forum is this.

I'm not sure what you mean by absolute URL. Do you mean substitute 'feedback.php' to 'mydomain.co.uk/feedback.html'?

I'll post my code up soon as i'm on my Mac at the moment and the code is on my PC. Got a few server problems at work so will have to sort them out first
Reply With Quote
  #4 (permalink)  
Old Aug 13th, 2007, 15:02
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 720
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Ah right. Yea I mean if at the moment it says:

/feedback.php

change it to:

http://www.yourdomain.com/feedback.php

that might solve it
Reply With Quote
  #5 (permalink)  
Old Aug 13th, 2007, 15:06
New Member
Join Date: Aug 2007
Location: uk
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Quote:
Originally Posted by 1840dsgn View Post
Ah right. Yea I mean if at the moment it says:

/feedback.php

change it to:

http://www.yourdomain.com/feedback.php

that might solve it
Just tried that right quickly and set it as you suggested but still no joy Do you mind checking my previous posts link to Webfusions starter plus pack and just double check i'm right in thinking that i've got PHP?
Reply With Quote
  #6 (permalink)  
Old Aug 13th, 2007, 15:08
New Member
Join Date: Aug 2007
Location: uk
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

lmao! Your not going to believe this. I've just realised i've got a Linux host and it is k sensitive....I'm sure you can figure out what I did wrong
Reply With Quote
  #7 (permalink)  
Old Aug 13th, 2007, 15:11
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 720
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Yea I've had a look and you've definitely got access to PHP 4 and 5.

Are you receiving the email that you should get?

As I say the easiest way would be tyo post the code up when you can...
Reply With Quote
  #8 (permalink)  
Old Aug 13th, 2007, 15:12
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 720
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

hahaha its always the simple things you don't notice!!

You have it working now then?

Well done if you do!

You got my 500th post!
Reply With Quote
  #9 (permalink)  
Old Aug 13th, 2007, 16:43
New Member
Join Date: Aug 2007
Location: uk
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Quote:
Originally Posted by 1840dsgn View Post
hahaha its always the simple things you don't notice!!

You have it working now then?

Well done if you do!

You got my 500th post!

Yea mate it's all working spot on now. Cheers for your input though, could quite easily have been the link in the php changing to domain. Couldn't believe it once I had realised, I could have kicked myself but I suppose it's my first decent website and first attempt at php etc. But still, what a !
Reply With Quote
  #10 (permalink)  
Old Aug 13th, 2007, 17:10
1840dsgn's Avatar
SuperMember

SuperMember
Join Date: Jun 2007
Location: Canterbury
Age: 19
Posts: 720
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Yea i only learnt recently as well....its fiddly isn't it!
Reply With Quote
  #11 (permalink)  
Old Aug 13th, 2007, 17:25
New Member
Join Date: Aug 2007
Location: uk
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: php mailform problem

Quote:
Originally Posted by 1840dsgn View Post
Yea i only learnt recently as well....its fiddly isn't it!
Well if i'm being honest I nicked the code from a php mail wizard I found on the net but ssshhhhh

I really do want to look into more css and php stuff but if you ever need anything you can just find templates and build upon them rather than having to do all the hard work at first lol. I'm a 3rd line teccy and working towards MCSE so web development isn't a high priority of mine just yet. I know some basic IIS and that's all I need to know really for now.
Reply With Quote
Reply

Tags
php mailform

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
First image problem and inline list problem konnor5092 Web Page Design 8 Dec 1st, 2007 09:08
Setting Mailform Variable Based on Database rgrimes Classic ASP 3 Aug 12th, 2006 14:52


All times are GMT. The time now is 05:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43