MajorGeeks Support Forums

Go Back   MajorGeeks Support Forums > ----------= PC, Desktop and Laptop Support =---------- > Software
Register FAQ Members List Calendar Casino Mark Forums Read

Software Software such as operating systems like Windows XP, Windows Vista, Windows 7 etc., or specific programs.


Reply
 
Thread Tools Display Modes
  #1  
Old 04-02-06, 11:15
Tom Robo's Avatar
Tom Robo Tom Robo is offline
Private E-2
 
Join Date: Oct 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default FORM MAIL, Its Great when it works! - Please help -

please understand, i am a novice with some elements of understanding about scripts.

Hello,

i have a .co.uk domain with STREAMLINE.NET. They host my site under the Widows 2003 server.
My site has a CGI-BIN
As the server is windows 2003, i have been told i cannot change file permissions i.e. to 755...etc

I have been trying with loads i mean LOADS of scripts to get this working, below is the desired effect i need to happen:

All i want to do is a user fills out a form, the form when clicked submit, the form data is send to an associated e-mail account. thats all

The the scripts say they work on windows etc, but when testing time and time again they dont, ive used PHP,PL,ASP,CGI etc non work.
Some of these scripts display the "thank-you" page, as if the script work but dont send any mail.
Some say "you are not authorised to view this page"
On questioning my host, they said all script to e-mail must have a from and to address to work, ive done just that no help. As well as this, they confirmed i cannot change the permissions.

I think the prob is the permissions as the user cannot use the write permission the data is not beging sent.
Of one example of the scripts i have used http://www.tele-pro.co.uk/scripts/contact_form/ loads of people say they work but they dont for me!

and yes i am uploading the sripts in the correct mode using ftp

If ive missed any info out, please let me no

Any ideas would be great!

Thanks a bundle in advance
Reply With Quote
Sponsored links
  #2  
Old 04-05-06, 13:06
Raits Raits is offline
Private First Class
 
Join Date: Dec 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: FORM MAIL, Its Great when it works! - Please help -

Here's a simple one that works fine on my webserver.
PHP Code:
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>Nameless</title>
</head>
<body>
<form method="POST">
<b>To:</b><input type="text" name="to" /><br />
<b>Subject:</b><input type="text" name="subject" /><br />
<b>Text:</b><br />
<textarea cols="40" rows="10" name="text"></textarea><br />
<input type="submit" name="sub" value="Send" /><br />
</form>
<?php
if(isset($_POST['sub']))
{
mail($_POST['to'], $_POST['subject'], $_POST['text']);
echo
"Should be sent?!";
}
?>
</body>
</html>
It doesn't need any premissions on the file, just upload it and run it.
Reply With Quote
  #3  
Old 04-05-06, 13:27
Tom Robo's Avatar
Tom Robo Tom Robo is offline
Private E-2
 
Join Date: Oct 2005
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: FORM MAIL, Its Great when it works! - Please help -

Thanks it works great, also i found one just after i added this one to my site from www.bignosebird.com check-it-out!

Thanks Again!
Reply With Quote
Reply

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

Forum Jump


All times are GMT -5. The time now is 06:57.


MajorGeeks.Com Home Page
| Admin Tools | All In One | Anti-Spyware | Anti-Virus | Appearance | Backup | Benchmarking | BIOS | Browsers | Covert Ops |
Data Recovery | Diagnostics | Drive Cleaners | Drive Utilities | Drivers | Driver Tools Ergonomics | Firewalls | Games | Game Tweaks | Graphics | Input Devices | Internet Tools | Macintosh | Mail Utilities | Memory | Messaging | Monitoring | Microsoft | Multimedia | Networking | Office Tools | Process Management | Processor | Registry | Security | System Info | Toys | Video | Miscellaneous
|
Powered by vBulletin® Version 3.8.4
Copyright © 2009 vBulletin Solutions, Inc. All rights reserved.
Ad Management by RedTyger