Where O Where Did My Data Buffer Go?

Sheila King sheila at spamcop.net
Thu May 3 09:43:06 EDT 2001


On Thu, 03 May 2001 03:38:14 -0700, Ben Ocean <zope at thewebsons.com> wrote in
comp.lang.python in article <mailman.988886465.1652.python-list at python.org>:

:First a BIG THANK YOU to everyone that helped, ESPECIALLY Chris and Sheila!
:Now, one more question for y'all...
:What I *really* need to do is publish all this data to a Web page, which I 
:have, no problem. But then, I need to be able to make it so the visitor can 
:click a link and send that data to the client or call up a printable page 
:with the data. So, how can I re-call my script and pass the data back, or 
:somehow keep the data from the first call? Here's my broken code (notice 
:variable *dataOriginal*):

I thought of something else...the first script could completely compose the
message body, so that you have an rfc822 compliant message, and Python
recognizes this as a string. Then the first script passes that string (by some
method?) to the second script. If the user clicks on "yes" to email the data,
then the second script uses the smtplib module and takes that string as the
message body and mails it.

I think you should look up a bit about cgi in order to figure out how to pass
the string to the second script.

--
Sheila King
http://www.thinkspot.net/sheila/
http://www.k12groups.org/




More information about the Python-list mailing list