Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2005, 11:25 AM
WebProWorld Member
 

Join Date: Aug 2004
Location: England
Posts: 66
Biggles RepRank 0
Default PHP - Problems with contact form

ARGH !

I had a form on our website for customers to contact us. I had tested it and it was working fine. Now i have found that it has stopped working. It keeps giving an error that the email and subject lines arn't filled in, even tho' they are ! nothin has changed so why has it stopped working ? what needs changing?

the three pages/files are at:

www.exevalleyfurnishing.co.uk/feedback.php

www.exevalleyfurnishing.co.uk/feedback1.php

www.exevalleyfurnishing.co.uk/feedbacksent.php

any and all help with this is thankfully recieved as i am not conversant with php !

Cheers, Ian
Reply With Quote
  #2 (permalink)  
Old 01-19-2005, 01:40 PM
WebProWorld Pro
 

Join Date: Jul 2003
Location: New Jersey, U.S.
Posts: 293
jdiben RepRank 0
Default

I cant say what the problem is without actually seeing the php code for the files. If the code isnt too long you could post it here or you could zip the 3 files and let us download them.

Joe
Reply With Quote
  #3 (permalink)  
Old 01-19-2005, 07:18 PM
WebProWorld Pro
 

Join Date: May 2004
Location: Austin, TX
Posts: 199
steve0 RepRank 0
Default

Here is a little snippet o' code I use to save time when I am posting between forms..
just to see what is getting sent and what is not..

Put this in the top of the pages under <body>

<?
echo "Values submitted from previous page:
";
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
echo "$key => $val\n
";
}
?>


Hope it helps..

Steve
__________________
Hardcore Programming Solutions and Coffee Drinker
Reply With Quote
  #4 (permalink)  
Old 01-20-2005, 01:39 AM
mushroom's Avatar
WebProWorld Veteran
 

Join Date: Feb 2004
Location: Queen Charlotte B. C. Canada
Posts: 351
mushroom RepRank 0
Default

Question has the server software been upgraded ?

Older php intalations ran with Globals=On
New php intalations run with Globals=Off for security

And reading your post again, think that is the most likely cause of your difficulties.

If it is you script will have to be rewriten, not really to big a deal just adding a few lines to each to get user varables.
__________________
Irony: That for most people the most "trusted" web site on the planet is for a company the has been convicted of criminal activity.

Both Security and SuSe start with "S". www.oldslides.com
Reply With Quote
  #5 (permalink)  
Old 01-21-2005, 10:27 AM
WebProWorld Member
 

Join Date: Aug 2004
Location: England
Posts: 66
Biggles RepRank 0
Default Can anyone suggest a php form that i can use?

can anyone suggest a php form that i can use, i have tried a few and all i get is blank message fields emailed to me.

the one i have now has stopped working, the server is using php 5.0.3 and is cPanel if this makes a difference.

Please help

Thanks, Ian
Reply With Quote
  #6 (permalink)  
Old 01-21-2005, 11:12 AM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

what are the fields you want to be displayed in the form?

Deep
Reply With Quote
  #7 (permalink)  
Old 01-21-2005, 11:44 AM
WebProWorld Member
 

Join Date: Aug 2004
Location: England
Posts: 66
Biggles RepRank 0
Default

only simple stuff, would like a small one with name, email and comments
and maybe another with name, email, phone number and comments box

its so simple, the form bit isnt the problem to code, its transforming it into an email that i'm having probs with, nothing seems to work for me.

Ta.
Reply With Quote
  #8 (permalink)  
Old 01-24-2005, 12:10 AM
Deep13's Avatar
WebProWorld Veteran
 

Join Date: Dec 2003
Location: India
Posts: 306
Deep13 RepRank 0
Default

Hi,
Sorry for replying late,

First you try to display the values into action page and see whether the values are being passed or not..

for example

if the form field is
<input type="text" name="fname" value="<?php echo $fname; ?>">

and on next page try to echo variable $fname

echo $_POST['fname'];

its better to use $_POST because if register_globals is off then using direct variable name i.e. echo $fname; wont work...

So once it displays then it shold also print the same values in mail also...

can you provide the part of the code here?

Deep
Reply With Quote
  #9 (permalink)  
Old 01-24-2005, 01:45 AM
mushroom's Avatar
WebProWorld Veteran
 

Join Date: Feb 2004
Location: Queen Charlotte B. C. Canada
Posts: 351
mushroom RepRank 0
Default Re: Can anyone suggest a php form that i can use?

Quote:
Originally Posted by Biggles
the server is using php 5.0.3 and is cPanel if this makes a difference.
Php 5.0.3 is very recent, so my previous post is most likely right on the money.

Your scripts need to be changed and it is most likely easier to change the ones you are using than to get new ones.

Any one the knows a bit a about php could do it for you (including myself).
__________________
Irony: That for most people the most "trusted" web site on the planet is for a company the has been convicted of criminal activity.

Both Security and SuSe start with "S". www.oldslides.com
Reply With Quote
  #10 (permalink)  
Old 01-24-2005, 12:51 PM
WebProWorld Member
 

Join Date: Aug 2004
Location: England
Posts: 66
Biggles RepRank 0
Default

Thanks to everyone who replied , i have it sorted now, dunno why it just stopped working in the first place ! I replaced the form altogether with another one and that sent me an email but all the fields were blank ! so i found another one ! it seems to be working lovely now and much happiness has been restored to my life!

Thanks again everyone

Biggles
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: , , ,



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0