Re: passing string from one file to another

2006-04-17 Thread Lawrence D'Oliveiro
In article <[EMAIL PROTECTED]>, Kun <[EMAIL PROTECTED]> wrote: >I have a python-cgi form whose sole purpose is to email. > >It has the fields 'to', 'from', 'subject', 'body', etc. and if the user >fills them out and clicks submit, it will invoke another file called >mail.py which uses smtplib t

Re: passing string from one file to another

2006-04-17 Thread Ant
I assume that you are trying to pass data from one 'standalone' cgi script to another cgi script (mail.py). Depending on what exactly you are trying to do, you could either set the information in a cookie, or simply have a hidden input () element in the HTML which gets populated by the initial cgi

Re: passing string from one file to another

2006-04-16 Thread Kun
I V wrote: > Kun wrote: >> mail currently gets the body from an input box. >> >> this is where mail.py gets invoked: > > OK, I'm a bit confused. Where is the "initial python program" in all > this? You seem to have an one python program (mail.py) and an HTML > form. As it stands, I don't see why y

Re: passing string from one file to another

2006-04-16 Thread I V
Kun wrote: > mail currently gets the body from an input box. > > this is where mail.py gets invoked: OK, I'm a bit confused. Where is the "initial python program" in all this? You seem to have an one python program (mail.py) and an HTML form. As it stands, I don't see why you can't change mail.py

Re: passing string from one file to another

2006-04-16 Thread Kun
I V wrote: > Kun wrote: >> This works fine but instead of typing in a 'body', i would like the >> initial python program to just send a string as the body of the email. >> now normally i'd just set the msg in the mail.py file equal to the >> string, however, i do not know how to link a string from

Re: passing string from one file to another

2006-04-16 Thread I V
Kun wrote: > This works fine but instead of typing in a 'body', i would like the > initial python program to just send a string as the body of the email. > now normally i'd just set the msg in the mail.py file equal to the > string, however, i do not know how to link a string from another python >

Re: passing string from one file to another

2006-04-16 Thread Kun
Kun wrote: > I have a python-cgi form whose sole purpose is to email. > > It has the fields 'to', 'from', 'subject', 'body', etc. and if the user > fills them out and clicks submit, it will invoke another file called > mail.py which uses smtplib to send the message. > > This works fine but inst

passing string from one file to another

2006-04-16 Thread Kun
I have a python-cgi form whose sole purpose is to email. It has the fields 'to', 'from', 'subject', 'body', etc. and if the user fills them out and clicks submit, it will invoke another file called mail.py which uses smtplib to send the message. This works fine but instead of typing in a 'body'