Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > HTML / Design

HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-2008, 12:07 PM
Junior Member
 
Join Date: Jan 2008
Posts: 3
Default Form handling - Add-on domain using cgiemail

I have a master site and I am using cgiemail to process a form. It works great and I like the template ability to give me a formatted email. But ...

I struggled when I tried to add a form to an add-on domain using cgiemail. And support seems to have no clue. They said that maybe it couldn't be done and I should pursue a PHP approach.

What I found works is this:
Assume the main domain is main.com
Assume the add-on domain is addon.org
Assume the template is join.txt
Assume the success screen is jointy.shtml

You'll have to view the rest in the next segment. This forum is chopping off my posts.

(Hmmm. Seems the forum breaks on the word "action" used without quotes)

Paul
Custom Support - Welcome

Last edited by Paul Hunt; 02-15-2008 at 12:20 PM.
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 12:11 PM
Junior Member
 
Join Date: Jan 2008
Posts: 3
Default

In the form tag you'll code the "action" as:
http://main.com/cgi-bin/cgiemail/addon.org/join.txt
In the hidden redirect (success) field code the "value" as:
http://addon.org/jointy.shtml

It appears you must use cgiemail in the main domain and reference it explicitly.
../cgi-bin/cgiemail does not work
copying cgiemail to the add-on domain cgi-bin folder does not work
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 12:43 PM
seoguru's Avatar
SEO Guru
 
Join Date: Sep 2007
Posts: 127
Default

Hi Paul,

Why don't you use PHP mail form?
...cgi is complex
Reply With Quote
  #4 (permalink)  
Old 02-15-2008, 12:53 PM
Junior Member
 
Join Date: Jan 2008
Posts: 3
Default Complex?

cgiemail is already installed. It allows me to set up a template to report the form results in the order that I want to see them for database entry (as opposed to the order that is best for the visitor to enter things in). Plus I can add supporting information to each field, as opposed to having it just report, for example, Yes or No.
I looked at formmail, but it doesn't (yet) have templates.
Except for the issue with add-on domains, using cgiemail was easy.
__________________
Paul
http://customsupport.com
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 06:05 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

Copyright © 2003 - 2008 HostICan. All Rights Reserved.