Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
Thread Tools
  #1  
Old 06-05-2009, 01:51 PM
Private
 
Join Date: Jun 2009
Posts: 2
Default Need help editing PHP on a form

Hello Voda Experts

Firstly, my Account ID# is 24513. The domain name is amalgamated-services.co.uk.

Secondly, I am having a problem with my enquiry form.

I have told it, using the Form Properties > General tab to use PHP to process the contents of the form and send them to my work address - info@asllimited.co.uk.

When I click submit on the form, it goes to the "success" page but the email doesn't reach me.

I changed the address to my yahoo account and received the submission successfully.

When the submission comes to my yahoo account, it is listed with my yahoo email address as both the to and from settings.

I have spoken to our IT support who tell me that we have a spam filter set to refuse emails which are listed as both to and from the same email address and they have told me to change one of them on the website so that the submissions come through.

Now, I can't see a place to change this setting in Form Properties > General and it seems that I need to be editing the PHP.

I've never edited PHP though and don't know what to change or what to change it to.

Could someone give me an example of what the text I'm looking for is likely to say, what exactly I should change it to, what file I need to adjust and what software I can use to adjust it with?

Ideally I'd like the From address to use the email address which has been entered into the form.

If it helps, the form I'm talking about is live at www.asllimited.co.uk/contact_us_new.php

Thank you in advance for any help you can offer me.

Best wishes

Samantha
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 06-05-2009, 04:33 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Need help editing PHP on a form

You only have a very simple issue here: your form field which is for the visitors email address is NOT named "email" (all lowercase)

The built in form processor turns the senders email address to be your own, when this condition is encountered. This for the simplest of reasons: the code is expecting a "email" field. When it doesn't find it, it changes it to your own, otherwise the "from" email address would be blank, and this is a far more serious reason to block the email.

Rename your field, Save, Publish, and Refresh your browser before testing.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 06-06-2009, 01:48 PM
Private
 
Join Date: Jun 2009
Posts: 2
Default Re: Need help editing PHP on a form

Thank you Navaldesign

I will try this out and get back to you - I really appreciate you taking the time to explain it for me.

Have a great weekend

Samantha
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off



All times are GMT +1. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - 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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203