iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar 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.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2004, 07:43 AM
WebProWorld New Member
 
Join Date: Apr 2004
Location: UK
Posts: 20
lentin RepRank 0
Default Re-directing forms from one site to another.

Hi

I have two addresses for basically the same site.http://www.lentin.freeuk.com and http://www.olivegrove-travel.com

The Freeuk site was what I used before we got our own website address, but it is so high on all search engines apart from Google that I don't really want to take it off.

The problem that I have is to do with form submission. I am receiving the forms sent by users of "Olivegrove" but not those using "Freeuk".

Could you please view source and tell me what I have done wrong.

The other problem that I have is that when I receive email from the "Olivegrove" site, the email address that appears is " webmaster@www.olivegrove-travel.com (www.olivegrove-travel.com sending on behalf of '') ". Would it be possible to also put me right on this so that I receive the proper email address only.

Thanks for your help in advance.
__________________
90% of my brain has gone - the other 10% is luck.

Len
www.olivegrove-travel.com
Reply With Quote
  #2 (permalink)  
Old 06-21-2004, 08:09 AM
WebProWorld New Member
 
Join Date: Apr 2004
Location: UK
Posts: 20
lentin RepRank 0
Default

Really sorry. It's the boookings page on both sites that have the form.

Regards

What a plonker I am
__________________
90% of my brain has gone - the other 10% is luck.

Len
www.olivegrove-travel.com
Reply With Quote
  #3 (permalink)  
Old 06-21-2004, 09:45 PM
WebProWorld New Member
 
Join Date: Jul 2003
Location: Canada
Posts: 22
PBITech RepRank 0
Default

Hi lentin,

it is likely the send mail CGI script you are using calls a &check_url; subroutine. Meaning that if the script is called from a different domain, other than the one configured into the script, well, the script will not execute. This is so people can not use and abuse your script from their own sites.

If you do have such a subroutine, you probably have an array within your script something like this

Code:
@referers = ('olivegrove-travel.com','000.000.00.0');
The blank IP is only for display purposes here, within your script it's probably a valid one.

You should be able to get away with just adding the other domain to the array like so...

Code:
@referers = ('olivegrove-travel.com','lentin.freeuk.com','000.000.00.0');
Please keep in mind these are only assumptions. I am unable to view your actual script, so I can not specifically comment to well. There are many variations of send mail scripts. Also, If you are not comfortable with editing code I don't recommend it, but it's always good to back up before you do.

I may not be to clear with your second question, again I'm assuming. Are you saying that the actual return address does not appear correctly, in order to reply to the sender? Whatever the case, that would be more difficult to comment on without seeing the actual script and how it coincides with the form data...

Jim
__________________
PBI Tech
James R Michael.
Internet Development And Marketing.
Reply With Quote
  #4 (permalink)  
Old 06-22-2004, 05:23 AM
WebProWorld New Member
 
Join Date: Apr 2004
Location: UK
Posts: 20
lentin RepRank 0
Default

Thanks for that, I will check the script and come back and let you know the result.

Thanks again
__________________
90% of my brain has gone - the other 10% is luck.

Len
www.olivegrove-travel.com
Reply With Quote
  #5 (permalink)  
Old 06-22-2004, 06:06 AM
WebProWorld New Member
 
Join Date: Apr 2004
Location: UK
Posts: 20
lentin RepRank 0
Default

I thought it would be easier to re-direct anyone who wants to make a booking to the proper site, so that's what I've done.

You were right in your post, but the part of my brain needed to change it is in the 90%.

Thanks again

Len
__________________
90% of my brain has gone - the other 10% is luck.

Len
www.olivegrove-travel.com
Reply With Quote
Reply

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

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



All times are GMT -4. The time now is 04:25 PM.



Search Engine Optimization by vBSEO 3.3.0