MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Contact Us/ Multiple FeedBack Pages/Multiple Email Addresses



On 30 Nov, Swisher, Karl wrote:
> ******    message to minivend-users from kswisher@iolinc.net (Swisher, Karl)     ******
> 
> Hello:
> 	I have a Postgresql database set up for link searches.  I am using
> MiniVend's built in search engine to access it and it works great.
> 
> 	In addition I want to setup another email address in addition to
> the existing "orders to".   This will allow people to contact us concerning
> corrections to the links data.  It would be best if this is in a different mail
> box than the orders.
> 
> 	What I've tried so far:
> 
> Have form set up.
> 
> 1. Set form action to "email.cgi".  Typed in a CGI/PERL script for processing
> email from HTML pages out of SAMS "Teach Yourself CGI Programming In A Week".  
> Made variable name substitution to correspond to the variable names used for
> the fields in the form.   Saved script to /home/httpd/cgi-bin/email.cgi.  Also
> saved it to the MiniVend /lib/Vend directory with the same results.  The error
> is
> 
> 127.0.0.1 ZxBveQMM:127.0.0.1 - [30/November/1999:15:41:23 -0500] jtbm
> /cgi-bin/jtbm/email.cgi Runtime error: ERROR:  Bad float8 input format
> 'email.cgi'
> 
> I've even commented out everything but the top line and "use CGI;" and get the
> same error.
> 
> 2. After searching this mailing list archieve I got pointed to feedback.html. 
> I want to leave that just the way it is just duplicate it.  I then copied the
> file to feedbacklinks.html and replaced  __ORDERS_TO__ with
> "correctlink@localhost"  Setup an <A HREF pointing to
> special/feedbacklinks.html.  Got the "Hey! This needs to come from a feedback
> form." message insead of the form.  I see this is because of a scratch
> feedback_active not being active.
> 
> 3.  Changed the <A HREF to [area feadbacklinks]  and got an error like the
> first one.
> 
>  127.0.0.1 sz5iuVFU:127.0.0.1 - [30/November/1999:16:45:31 -0500] jtbm
> /cgi-bin/jtbm/feedbacklinks Runtime error: ERROR:  Bad float8 input format
> 'feedbacklinks'
> 
> 4. Using  [area feadback] only brings up the existing feedback.html page.  
> 
> Do anybody know any work arounds?
> 
> I'm running RH 5.2
> Perl 5.004.004
> 
> Any help will be appreciated
> Thanks
> Karl
> 

Maybe this can help.

Create a html page like
 ----------------SNIPP---------------------
<FORM ACTION="http://__SERVER_NAME____CGI_URL__/postout?[data session id]" METHOD="POST">

 [L]Subject[/L] :
           <SELECT NAME="subject">
                         <OPTION VALUE="Hello world!"> Hello World!
                         <OPTION VALUE="Hello Karl!"> Hello Karl!
                 </SELECT>
 [L]Message[/L] :
       <TEXTAREA name="MESSAGE" cols=60 rows=20>[value MESSAGE]</TEXTAREA>
<input type="hidden" Name="emailto" VALUE="kswisher@iolinc.net"> 
<input type="submit" Name=mv_todo VALUE="Senden"> 

 </FORM>

 ----------------SNIPP---------------------


 and this is my postout.html with form_mail :

 
 ----------------SNIPP---------------------


Add this lines

[perl arg="cgi scratch"]
         $Safe{'scratch'}->{"emailto"}  = $Safe{'cgi'}->{"emailto"};
         $Safe{'scratch'}->{"subject"}  = $Safe{'cgi'}->{"subject"};
         $Safe{'scratch'}->{"MESSAGE"}  = $Safe{'cgi'}->{"MESSAGE"};
"";
[/perl]


 [perl arg=sub interpolate=1] 
       form_mail(
             q{[scratch emailto]},
             q{[scratch subject]!},
             q{[value name]  <[value email]>},
             <<'EndOfMail')
 
      [L]EMAIL DATE[/L]: [calc]localtime[/calc]
 
 anystuff......
 
 Subject   : [scratch subject]

 
 Message :
 -----------------------------------------------------------------------------------
 
 [scratch MESSAGE]

 
 -----------------------------------------------------------------------------------
 
 EndOfMail
 [/perl]

 ----------------SNIPP---------------------

Regards,

Joachim



-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1971449
45886 Gelsenkirchen         FAX: 0209 1671449



Search for: Match: Format: Sort by: