Jump to content

TCH-Bruce

Members
  • Posts

    20,156
  • Joined

  • Last visited

Everything posted by TCH-Bruce

  1. Welcome to the forums Spartan I will answer these to the best of my ability. You can also get answers to your specific questions by opening a ticket on the help desk to sales. Yes, a dedicated server can be used as a reseller account. The AUP applies to all servers. But TCH will work with you to rectify the issue before terminating your account. As far as I know SSH is available on a dedicated server. See response to #3 I would verify this with the help desk but I believe you would get them. Secure FTP is available.
  2. Welcome to the forum, silverz
  3. Not aware of any issues, please open a ticket with the help desk and I'm sure they'll look into it for you.
  4. rage
  5. I name my Perl scripts with a ".pl" extension. This way I know what they are but they can have any extension you want.
  6. Welcome to the forums Kipka If you are a customer here you have Fantastico in your cPanel. Log in and select Fantastico and you can install SMF (Simple Machines Forum) with a few clicks of the mouse. Don't know what forum software you are using but it should be possible to migrate that as well. You would need to FTP the folder to your PC, upload it to the other server, change the config files. You should be able to export your database and create a new one on the server you move to and have the techs load your current database into it. You may need to alter some links in the database as well.
  7. Welcome to the forums fahuber3 Please open a ticket with the help desk and I am sure one of the techs can offer some assistance. Link for the help desk is above or in my signature.
  8. sure
  9. Glad support was able to help you out and glad you are happy. Thanks for the kind words.
  10. Thanks Thomas
  11. equal
  12. royal
  13. uncle
  14. moose
  15. mush
  16. Glad you got it sorted out.
  17. Welcome to the forums jfrankl You may want to pass your action to a full url. Don't know if that will help but it's a place to start. I use Perl to handle my forms so I can't help much with PHP.
  18. chaos
  19. Welcome to the forums gmwade Here is a sample script that I use. You will need a copy of cgi-lib.pl which you can find using Google. Place the scripts in your "cgi-bin" folder and change the permissions to 755. Hope that helps. >#!/usr/bin/perl $mailprog = '/usr/sbin/sendmail -t' ; require ('cgi-lib.pl'); &ReadParse(*field); $First_Name = $field{'First_Name'} ; $Last_Name = $field{'Last_Name'} ; $E_mail = $field{'E_mail'} ; $Phone = $field{'Phone'}; $Comments = $field{'Comments'} ; $message = "" ; $found_err = "" ; #get current date and time &get_date; $errmsg = "<p>Field 'First Name' must be filled in.</p>\n" ; if ($First_Name eq "") { $message = $message.$errmsg ; $found_err = 1 ; } $errmsg = "<p>Field 'Last Name' must be filled in.</p>\n" ; if ($Last_Name eq "") { $message = $message.$errmsg ; $found_err = 1 ; } $errmsg = "<p>Please enter a valid email address</p>\n" ; if ($E_mail !~ /.+\@.+\..+/) { $message = $message.$errmsg ; $found_err = 1 ; } $errmsg = "<p>You must enter a 'Phone' number.</p>\n" ; if ($Phone eq "") { $message = $message.$errmsg ; $found_err = 1 ; } $errmsg = "<p>Field 'Comments' must be filled in.</p>\n" ; if ($Comments eq "") { $message = $message.$errmsg ; $found_err = 1 ; } if ($found_err) { &PrintError; } $recip = "you\@yourwebsite.com" ; open (MAIL, "|$mailprog"); print MAIL "Reply-to: $E_mail\n"; print MAIL "From: $E_mail\n"; print MAIL "To: $recip\n"; print MAIL "Subject: Webform request\n"; print MAIL "\n\n"; print MAIL "On: ".$long_date."\n" ; print MAIL "--------------------------------------\n" ; print MAIL "\n" ; print MAIL "Name: ".$First_Name." ".$Last_Name."\n" ; print MAIL "E-mail: ".$E_mail."\n" ; print MAIL "Phone: ".$Phone."\n" ; print MAIL "--------------------------------------\n" ; print MAIL "\n" ; print MAIL "Comments: ".$Comments."\n" ; print MAIL "--------------------------------------\n" ; print MAIL "\n\n"; close (MAIL); $recip = $E_mail ; open (MAIL, "|$mailprog"); print MAIL "Reply-to: you\@yourwebsite.com\n"; print MAIL "From: you\@yourwebsite.com\n"; print MAIL "To: $recip\n"; print MAIL "Subject: Your message has been received\n"; print MAIL "\n\n"; print MAIL "Thank you ".$First_Name." for using our on-line message form.\n" ; print MAIL "\n" ; print MAIL "We will respond to your query as quickly as possible.\n" ; print MAIL "\n" ; print MAIL "You submitted the following:\n" ; print MAIL "\n" ; print MAIL "Name: ".$First_Name." ".$Last_Name."\n" ; print MAIL "E-mail: ".$E_mail."\n" ; print MAIL "Phone: ".$Phone."\n" ; print MAIL "------------------------------------\n" ; print MAIL "Comments: ".$Comments."\n" ; print MAIL "------------------------------------\n" ; print MAIL "\n" ; print MAIL "If you require a response you should receive one within 48 hours, if not please \n"; print MAIL "submit this information again by replying to this message.\n" ; print MAIL "\n" ; print MAIL "Thank you,\n" ; print MAIL "\n" ; print MAIL "Your Name\n" ; print MAIL "http://www.yourwebsite.com\n" ; print MAIL "\n\n"; close (MAIL); print "Content-type: text/html\n\n"; print "<HTML>\n" ; print "<HEAD>\n" ; print "<TITLE>Thank You!</TITLE>\n" ; print "<style>\n" ; print "body {\n" ; print 'color: "#000000";'."\n" ; print 'font-family: "arial";'."\n" ; print "font-size: 10pt;\n" ; print "}\n" ; print "a:link { color: blue; text-decoration: none }\n" ; print "a:visited { color: darkred; text-decoration: none }\n" ; print "a:active { color: cyan; text-decoration: none }\n" ; print "a:hover { color: red; text-decoration: underline }\n" ; print "</style>\n" ; print "</HEAD>\n" ; print '<BODY bgcolor="white">'."\n" ; print "<center>\n" ; print '<table border="0" width="90%">'."\n" ; print "<tr><td>\n" ; print '<H2><font color="red">Thank you '.$First_Name.'!</font></H2>'."\n" ; print "We appreciate your taking the time to write.\n" ; print "<P>\n" ; print "We\'ve mailed off your query to be processed as soon as possible. We\'ve sent you an e-mail \n" ; print "confirmation with the information you entered on the form.\n" ; print "<P>\n" ; print "Information submitted:<br>\n" ; print "Comments: ".$Comments."\n" ; print "<P>\n" ; print "We will reply to you as quickly as possible if necessary.\n" ; print "Your request is important to us.\n" ; print "<HR>\n" ; print '<H3>Back to the <A HREF="http://www.yourwebsite.com">Home Page</A></H3>'."\n" ; print "</td></tr></table></center>\n" ; print "</BODY></HTML>\n" ; sub PrintError { print "Content-type: text/html\n\n"; print "<HTML>\n" ; print "<HEAD>\n" ; print "<TITLE>Validation Errors!</TITLE>\n" ; print "</HEAD>\n" ; print '<BODY bgcolor="white">'."\n" ; print "<center>\n" ; print '<table border="0" width="90%">'."\n" ; print "<tr><td>\n" ; print '<p align="center"><font color="#FF0000" face="Arial"><big><strong>Webmail Form'."\n" ; print "Processing Error</strong></big></font></p>\n" ; print "\n" ; print '<p align="left"><font face="Arial" color="#000080"><strong>You forgot to enter one or more'."\n" ; print "values:</strong></font></p>\n" ; print "\n" ; print '<p align="left"><font color="#000000" face="Arial"><strong>'.$message.'</strong></font></p>'."\n" ; print "\n" ; print '<p align="left"><font face="Arial" color="#000080"><strong>Please click your browser\'s'."\n" ; print "Back button and try again.</strong></font></p>\n" ; print "</td></tr></table></center>\n" ; print "</BODY></HTML>\n" ; exit 0 ; return 1 ; } sub get_date { ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); if ($sec < 10) { $sec = "0$sec"; } if ($min < 10) { $min = "0$min"; } if ($hour < 10) { $hour = "0$hour"; } if ($mon < 10) { $mon = "0$mon"; } if ($mday < 10) { $mday = "0$mday"; } $month = ($mon + 1); $year = ($year + 1900); @months = ("January","February","March","April","May","June","July","August","September","October","November","December"); $date = "$hour\:$min\:$sec $month/$mday/$year"; chop($date) if ($date =~ /\n$/); $long_date = "$months[$mon] $mday, $year at $hour\:$min\:$sec"; } In your web page to use this script you build your form using this: ><form action="http://www.yourwebsite.com/cgi-bin/yourscript.pl" method="post">
  20. I'm still using mine.....
  21. Welcome to the forums trg I have used mail2web in the past but it appears not to be working today. Must be a problem on their end because I have no problems accessing my account using any other method.
  22. Thanks Thomas Another reason for people to switch to one of the alternatives.
×
×
  • Create New...