|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
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 |
|
|||
|
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 |
|
|||
|
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 |
|
||||
|
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 |
|
||||
|
what are the fields you want to be displayed in the form?
Deep
__________________
Deep Ganatra Gifts to India - Cisco Certification Training - CSS Based Website Design |
|
||||
|
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. |
|
||||
|
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
__________________
Deep Ganatra Gifts to India - Cisco Certification Training - CSS Based Website Design |
|
||||
|
Quote:
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 |
|
||||
|
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 |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |