pass values to another scipt

2002-05-14 Thread Sven Bentlage

Hi!

I am using one script to secure the members area and offer several 
search functions for am mysql database. another script offers the 
possibility to update data in this database. Botth scripts require the 
user to ennter name, lastname and password.
Now I want to enable the user to get straight to the update function 
without having to enter name, lastname and password (he already entered 
one time) again.

How can I pass those already collected values on to another script using 
a link (a href)?
Or how can i do that at all?

Thanks for your help,

Sven


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




pass values to another scipt

2002-05-14 Thread David vd Geer Inhuur tbv IPlib


Hi All,

I am currently having the same problems as Sven. I tried to get some info on it as
wel, but it seems a difficult one.
I have made a simple example to explain it a little :

HTML-CODE:
---
html
form method=post action=/cgi-bin/david/1.cgi
table

input type=hidden name=hide1 value=secure
input type=hidden name=hide2 value=very secure
trtdplease enter your First name /tdtdinput type=text name=userid/td/tr
trtdPlease enter your Last name /tdtdinput type=password name=pw/td/tr
trtda href=/cgi-bin/david/1.cgiPlease try this one/a/td/tr
trtdinput type=submit/td/tr

/table/form
/html
--

Perl-script:
---
#!/user/cadiclab/bin/perl

use CGI qw(:standard);

$first = param('userid');
$last = param('pw');
$hide1 = param('hide1');
$hide2 = param('hide2');

print header,
start_html(-BGCOLOR=#99),
start_form;

print Hallo userid: $first with password: $last brbr;
print Hidden fields are; brbrField1: $hide1 brField2: $hide2 br;

print   end_form,
hr;
--  

Ones I hit the submit button the cgi-script does it all for me.
He tells me who I am and he prints the hidden fields.

Ones I hit the a href the params are not read within my cgi-script ?
Not the input type=text and not the input type=hidden.

Is there a way to get this working ?

Any other solutions to a more secure way of solving this are welcome too !


P.S.: I need the links to browse through directory's and do stuff with it.
A submit button instead of a a href does not look very fancy :)


Best Regards,

David van der Geer 

 
 Hi!
 
 I am using one script to secure the members area and offer several 
 search functions for am mysql database. another script offers the 
 possibility to update data in this database. Botth scripts require the 
 user to ennter name, lastname and password.
 Now I want to enable the user to get straight to the update function 
 without having to enter name, lastname and password (he already entered 
 one time) again.
 
 How can I pass those already collected values on to another script using 
 a link (a href)?
 Or how can i do that at all?
 
 Thanks for your help,
 
 Sven

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: pass values to another scipt

2002-05-14 Thread Sven Bentlage

Ok, i found out how to pass a few arguments to the other script:

   a 
href=collectformdata.cgi?action=fetchf_name=$f_namef_surname=$f_surname
  Update/a

The only problem I have left is that the variables are not passed on. 
Once I put names in there, it works just fine, but I do need those 
variables to work.
if I would get  any tips on this I'd really appreciate it

Sven
On Tuesday, May 14, 2002, at 04:36 PM, David vd Geer Inhuur tbv IPlib 
wrote:


 Hi All,

 I am currently having the same problems as Sven. I tried to get some 
 info on it as
 wel, but it seems a difficult one.
 I have made a simple example to explain it a little :

 HTML-CODE:
 ---
 html
 form method=post action=/cgi-bin/david/1.cgi
 table

 input type=hidden name=hide1 value=secure
 input type=hidden name=hide2 value=very secure
 trtdplease enter your First name /tdtdinput type=text 
 name=userid/td/tr
 trtdPlease enter your Last name /tdtdinput type=password 
 name=pw/td/tr
 trtda href=/cgi-bin/david/1.cgiPlease try this one/a/td/tr
 trtdinput type=submit/td/tr

 /table/form
 /html
 --

 Perl-script:
 ---
 #!/user/cadiclab/bin/perl

 use CGI qw(:standard);

 $first = param('userid');
 $last = param('pw');
 $hide1 = param('hide1');
 $hide2 = param('hide2');

 print header,
 start_html(-BGCOLOR=#99),
 start_form;

 print Hallo userid: $first with password: $last brbr;
 print Hidden fields are; brbrField1: $hide1 brField2: $hide2 
 br;

 print   end_form,
 hr;
 --

 Ones I hit the submit button the cgi-script does it all for me.
 He tells me who I am and he prints the hidden fields.

 Ones I hit the a href the params are not read within my cgi-script ?
 Not the input type=text and not the input type=hidden.

 Is there a way to get this working ?

 Any other solutions to a more secure way of solving this are welcome 
 too !


 P.S.: I need the links to browse through directory's and do stuff with 
 it.
   A submit button instead of a a href does not look very fancy :)
   
   
 Best Regards,

 David van der Geer


 Hi!

 I am using one script to secure the members area and offer several
 search functions for am mysql database. another script offers the
 possibility to update data in this database. Botth scripts require the
 user to ennter name, lastname and password.
 Now I want to enable the user to get straight to the update function
 without having to enter name, lastname and password (he already entered
 one time) again.

 How can I pass those already collected values on to another script 
 using
 a link (a href)?
 Or how can i do that at all?

 Thanks for your help,

 Sven



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: pass values to another scipt

2002-05-14 Thread fliptop

David vd Geer Inhuur tbv IPlib wrote:

 #!/user/cadiclab/bin/perl
 
 use CGI qw(:standard);
 
 $first = param('userid');
 $last = param('pw');
 $hide1 = param('hide1');
 $hide2 = param('hide2');
 
 print header,
 start_html(-BGCOLOR=#99),
 start_form;
 
 print Hallo userid: $first with password: $last brbr;
 print Hidden fields are; brbrField1: $hide1 brField2: $hide2 br;


this is dangerous!

you are taking user input and printing it directly to the browser 
without any html escaping!

please read this:

http://www.perl.com/pub/a/2002/02/20/css.html

as for your question - have you tried using .htaccess?


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: pass values to another scipt

2002-05-14 Thread David vd Geer Inhuur tbv IPlib


Hi Sven,

Sorry, I thought you knew that one.

But how to proceed if you don't want those ugly/insecure params in your location bar ?


Regs David

 
 Ok, i found out how to pass a few arguments to the other script:
 
  a 
 href=collectformdata.cgi?action=fetchf_name=$f_namef_surname=$f_surname
   Update 
 The only problem I have left is that the variables are not passed on. 
 Once I put names in there, it works just fine, but I do need those 
 variables to work.
 if I would get  any tips on this I'd really appreciate it
 
 Sven
 On Tuesday, May 14, 2002, at 04:36 PM, David vd Geer Inhuur tbv IPlib 
 wrote:
 
 
  Hi All,
 
  I am currently having the same problems as Sven. I tried to get some 
  info on it as
  wel, but it seems a difficult one.
  I have made a simple example to explain it a little :
 
  HTML-CODE:
  ---
  html
  form method=post action=/cgi-bin/david/1.cgi
  table
 
  input type=hidden name=hide1 value=secure
  input type=hidden name=hide2 value=very secure
  trtdplease enter your First name /tdtdinput type=text 
  name=userid/td/tr
  trtdPlease enter your Last name /tdtdinput type=password 
  name=pw/td/tr
  trtda href=/cgi-bin/david/1.cgiPlease try this one/a/td/tr
  trtdinput type=submit/td/tr
 
  /table/form
  /html
  --
 
  Perl-script:
  ---
  #!/user/cadiclab/bin/perl
 
  use CGI qw(:standard);
 
  $first = param('userid');
  $last = param('pw');
  $hide1 = param('hide1');
  $hide2 = param('hide2');
 
  print header,
  start_html(-BGCOLOR=#99),
  start_form;
 
  print Hallo userid: $first with password: $last brbr;
  print Hidden fields are; brbrField1: $hide1 brField2: $hide2 
  br;
 
  print   end_form,
  hr;
  --
 
  Ones I hit the submit button the cgi-script does it all for me.
  He tells me who I am and he prints the hidden fields.
 
  Ones I hit the a href the params are not read within my cgi-script ?
  Not the input type=text and not the input type=hidden.
 
  Is there a way to get this working ?
 
  Any other solutions to a more secure way of solving this are welcome 
  too !
 
 
  P.S.: I need the links to browse through directory's and do stuff with 
  it.
  A submit button instead of a a href does not look very fancy :)
  
  
  Best Regards,
 
  David van der Geer
 
 
  Hi!
 
  I am using one script to secure the members area and offer several
  search functions for am mysql database. another script offers the
  possibility to update data in this database. Botth scripts require the
  user to ennter name, lastname and password.
  Now I want to enable the user to get straight to the update function
  without having to enter name, lastname and password (he already entered
  one time) again.
 
  How can I pass those already collected values on to another script 
  using
  a link (a href)?
  Or how can i do that at all?
 
  Thanks for your help,
 
  Sven
 
 
 
 -- 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: yahoo mail did't compile HTML mail

2002-05-14 Thread Alex Read

messag from ESS wrote:

 hi all
 I konw you havn't much time then I will begain directly
 Probem is:
 1- I make a program to send a mail.
 2- I send an HTML mail normaly to yahoo and hotmail.
 3- The hotmail compile it and display as a web bage.
 4- The yahoo did't compile it and display the HTML source !.

 Needed:
 1- why yahoo mail did not compile it.
 2- solve of this problem, or a way to solve it.

 --- START source---
 My source is:open(MAIL,|$mailp -t);
 print MAIL To: $email\n;
 print MAIL From: $wemail\n;
 print MAIL Subject: $subject\n\n;
 print MAIL $contents\n;
 close (MAIL);
 --- END source---

 THANKS FOR YOUR HELP

 _
 MSN Photos is the easiest way to share and print your photos:
 http://photos.msn.com/support/worldwide.aspx

 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

Hi,

I had some similar trouble and resolved it by using the following
headers and dividers.

From: me@myaddress
To: someone@theiraddress
Subject: Re: test
Content-Type: multipart/alternative; boundary=---divider---

-divider---
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Please use netscape 2 view

-divider---
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

html
ttHello,//tt
B
pttSome stuff/tt
br
/B
/html

-divider-



Hope that is what you were looking for.

Alex.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: pass values to another scipt

2002-05-14 Thread David Gray

 Hi Sven,
 
 Sorry, I thought you knew that one.
 
 But how to proceed if you don't want those ugly/insecure 
 params in your location bar ?

Use a form and an input type=image

HTH,

 -dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: yahoo mail did't compile HTML mail

2002-05-14 Thread messag from ESS

Thanks Alex Read
but it didnt work.and I can;t control on the user broswes.

NOTE: I want it compiled Like hotmial, the problem with yahoo

Thanks agian
=

From: Alex Read [EMAIL PROTECTED]
To: messag from ESS [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: yahoo mail did't compile HTML mail
Date: Tue, 14 May 2002 15:30:07 +0100

messag from ESS wrote:

  hi all
  I konw you havn't much time then I will begain directly
  Probem is:
  1- I make a program to send a mail.
  2- I send an HTML mail normaly to yahoo and hotmail.
  3- The hotmail compile it and display as a web bage.
  4- The yahoo did't compile it and display the HTML source !.
 
  Needed:
  1- why yahoo mail did not compile it.
  2- solve of this problem, or a way to solve it.
 
  --- START source---
  My source is:open(MAIL,|$mailp -t);
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
  --- END source---
 
  THANKS FOR YOUR HELP
 
  _
  MSN Photos is the easiest way to share and print your photos:
  http://photos.msn.com/support/worldwide.aspx
 
  --
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

Hi,

I had some similar trouble and resolved it by using the following
headers and dividers.

From: me@myaddress
To: someone@theiraddress
Subject: Re: test
Content-Type: multipart/alternative; boundary=---divider---

-divider---
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Please use netscape 2 view

-divider---
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

html
ttHello,//tt
B
pttSome stuff/tt
br
/B
/html

-divider-



Hope that is what you were looking for.

Alex.






_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: yahoo mail did't compile HTML mail

2002-05-14 Thread Kevin Meltzer

compiled like hotmail makes no sense. It is how the email client (in
this case Hotmail and Yahoo!) handle incoming email messages. If you
are not adding the proper header information, you can not expect the
client to do what you want.

Do you even know if Yahoo! handles HTML mail correctly? If it does,
then you aren't doing the Right Thing when creating the email. Proper
Content-Type header info should work. Hotmail may be displaying
whatever is in the email body (HTML, in this case), while Yahoo! is
treating it as text, since that is the default when no Content-Type is
explicitly given.

To create more robust emails, look into MIME::Lite, or some such
modules. For the web-based email system I wrote, I use MIME::Lite and
all is happy.

Cheers,
Kevin

On Tue, May 14, 2002 at 05:54:47PM +0300, messag from ESS ([EMAIL PROTECTED]) said 
something similar to:
 Thanks Alex Read
 but it didnt work.and I can;t control on the user broswes.
 
 NOTE: I want it compiled Like hotmial, the problem with yahoo
 
 Thanks agian
 =
 

-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
Not a speck of cereal.
-- Frank Zappa

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: yahoo mail did't compile HTML mail

2002-05-14 Thread Alex Read

messag from ESS wrote:

 Thanks Alex Read
 but it didnt work.and I can;t control on the user broswes.

 NOTE: I want it compiled Like hotmial, the problem with yahoo

 Thanks agian
 =

 From: Alex Read [EMAIL PROTECTED]
 To: messag from ESS [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: yahoo mail did't compile HTML mail
 Date: Tue, 14 May 2002 15:30:07 +0100
 
 messag from ESS wrote:
 
   hi all
   I konw you havn't much time then I will begain directly
   Probem is:
   1- I make a program to send a mail.
   2- I send an HTML mail normaly to yahoo and hotmail.
   3- The hotmail compile it and display as a web bage.
   4- The yahoo did't compile it and display the HTML source !.
  
   Needed:
   1- why yahoo mail did not compile it.
   2- solve of this problem, or a way to solve it.
  
   --- START source---
   My source is:open(MAIL,|$mailp -t);
   print MAIL To: $email\n;
   print MAIL From: $wemail\n;
   print MAIL Subject: $subject\n\n;
   print MAIL $contents\n;
   close (MAIL);
   --- END source---
  
   THANKS FOR YOUR HELP
  
   _
   MSN Photos is the easiest way to share and print your photos:
   http://photos.msn.com/support/worldwide.aspx
  
   --
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 Hi,
 
 I had some similar trouble and resolved it by using the following
 headers and dividers.
 
 From: me@myaddress
 To: someone@theiraddress
 Subject: Re: test
 Content-Type: multipart/alternative; boundary=---divider---
 
 -divider---
 Content-Type: text/plain; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 Please use netscape 2 view
 
 -divider---
 Content-Type: text/html; charset=us-ascii
 Content-Transfer-Encoding: 7bit
 
 html
 ttHello,//tt
 B
 pttSome stuff/tt
 br
 /B
 /html
 
 -divider-
 
 
 
 Hope that is what you were looking for.
 
 Alex.
 
 

 _
 Send and receive Hotmail on your mobile device: http://mobile.msn.com

Sorry, the please view with netscape bit was just an example, as with
the dividers in the user will only see either the text part or the html,
so you have a message in the txt part saying - please view me with a
something that is going to look at the html.  If that didn't work then I
only have the following advice;
1) make sure you have the format exactly the same as in the example
(especially the dividers as the number of - changes).
2) this problem is to do with the format of the email you send, not your
cgi script, so send yourself an email from the commands line and ignore
you cgi script until it works.

Good luck

Alex.




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: pass values to another scipt

2002-05-14 Thread John Brooking

Secure?? Have you guys been paying attention to the
Matt's Script Archive discussion? You can pass along
parameters between pages either in the URL or as
hidden fields, but NEITHER IS REALLY SECURE!! The
hidden fields only stymie the newbies. :-) Anyone
could just save the form to their hard drive, modify
the hidden field values there, and submit that
version. If the server script thinks it need only
check the referer variable to get around this, the
hacker can submit their modified page with their own
client, setting the referer field to whatever they
want.

True, it's nicer not seeing them in the URL, but it's
not that much more secure. I recommend Chapter 8 of
O'Reilly's CGI Programming with Perl for a thorough
discussion of CGI security issues.

- John

--- David vd Geer Inhuur tbv IPlib
[EMAIL PROTECTED] wrote:
 
 Hi Sven,
 
 Sorry, I thought you knew that one.
 
 But how to proceed if you don't want those
 ugly/insecure params in your location bar ?

  ... snip ...
 
   input type=hidden name=hide1 value=secure
   input type=hidden name=hide2 value=very
 secure

 ... snip ...


=
When you're following an angel, does it mean you have to throw your body off a 
building? - They Might Be Giants, http://www.tmbg.com

Word of the week: Serendipity, see http://www.bartleby.com/61/93/S0279300.html

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: CGI and frames

2002-05-14 Thread David Gray

 Sorry, I chose the wrong words..
 my script works similar to the way you described below. Depending on 
 which fields are filled out and which button is pressed, a different 
 subroutine is called, creating the page.

Ok... Could you post some code or pseudocode that describes the problem
you're trying to solve?

 -dave



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CGI and frames

2002-05-14 Thread John Brooking

Okay, I understand now. I guess you *could* do it with
one script, although as someone else noted, it is
basically separate scripts, called once per page, that
just happen to be stored in the same file. Whether you
store it in one script or separate is immaterial,
IMHO.

So, now that we understand, what exactly is not
working about it again? :-)

--- Sven Bentlage [EMAIL PROTECTED] wrote:
 Sorry, I chose the wrong words..
 my script works similar to the way you described
 below. Depending on 
 which fields are filled out and which button is
 pressed, a different 
 subroutine is called, creating the page.


=
When you're following an angel, does it mean you have to throw your body off a 
building? - They Might Be Giants, http://www.tmbg.com

Word of the week: Serendipity, see http://www.bartleby.com/61/93/S0279300.html

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CGI and frames

2002-05-14 Thread Sven Bentlage

I would like to create a html frameset plus the pages for the frameset.
In the top frame should go the menu (which is now displayed in a table 
at the top of the page), below that the pages the user creates by 
clicking on the button.

Until now I have not found out how to fill the frameset  with the pages. 
(I know how to create the frameset and the different pages via CGI, but 
do not know how to put it all together)

Normally a frameset looks (as you all know) somewhat like that:

frameset rows=80,* frameborder=NO border=0 framespacing=0
  frame src=path/to/file name=topFrame scrolling=NO noresize 
  frame src=path/to/file name=mainFrame
/frameset

Now I do not know/understand, how to replace the src=path/to/file with 
the corresponding sub (i.e. sub menu) :(

Thanks for your help,

Sven
On Wednesday, May 15, 2002, at 12:31 AM, John Brooking wrote:

 Okay, I understand now. I guess you *could* do it with
 one script, although as someone else noted, it is
 basically separate scripts, called once per page, that
 just happen to be stored in the same file. Whether you
 store it in one script or separate is immaterial,
 IMHO.

 So, now that we understand, what exactly is not
 working about it again? :-)

 --- Sven Bentlage [EMAIL PROTECTED] wrote:
 Sorry, I chose the wrong words..
 my script works similar to the way you described
 below. Depending on
 which fields are filled out and which button is
 pressed, a different
 subroutine is called, creating the page.


 =
 When you're following an angel, does it mean you have to throw your 
 body off a building? - They Might Be Giants, http://www.tmbg.com
 
 Word of the week: Serendipity, see 
 http://www.bartleby.com/61/93/S0279300.html

 __
 Do You Yahoo!?
 LAUNCH - Your Yahoo! Music Experience
 http://launch.yahoo.com

 --
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: yahoo mail did't compile HTML mail

2002-05-14 Thread Kevin Meltzer

You need a Content-Type header.
Content-Type: text/html; charset=iso-8859-1
(or whatever your charset is)

Cheers,
Kevin
 
On Tue, May 14, 2002 at 04:28:44PM +0300, messag from ESS ([EMAIL PROTECTED]) said 
something similar to:
 hi all
 I konw you havn't much time then I will begain directly
 Probem is:
 1- I make a program to send a mail.
 2- I send an HTML mail normaly to yahoo and hotmail.
 3- The hotmail compile it and display as a web bage.
 4- The yahoo did't compile it and display the HTML source !.
 
 Needed:
 1- why yahoo mail did not compile it.
 2- solve of this problem, or a way to solve it.
 
 --- START source---
 My source is:open(MAIL,|$mailp -t);
 print MAIL To: $email\n;
 print MAIL From: $wemail\n;
 print MAIL Subject: $subject\n\n;
 print MAIL $contents\n;
 close (MAIL);
 --- END source---
 
 THANKS FOR YOUR HELP

-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
Life Is Pain, Highness.  Anyone who says otherwise is selling something.
-- The Dread Pirate Wesley, in the Princess Bride.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: yahoo mail did't compile HTML mail

2002-05-14 Thread messag from ESS

Thanks to all these brains which give a help to us,

1- I tried this with many options but didnt work,
Content-Type: text/html; charset=iso-8859-1

2-This and give me error not for simicolon only,
--- START source---
open(MAIL,|$mailp -t);
  print MAIL Content-Type: text/html\n\n;
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
--- END source---

anyone try to make like me before?

Thankx again

From: Camilo Gonzalez [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED], messag from ESS  
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: yahoo mail did't compile HTML mail
Date: Tue, 14 May 2002 11:47:32 -0500

Dude,

Try this

  --- START source---
  My source is:open(MAIL,|$mailp -t);
  print MAIL Content-Type: text/html\n\n;
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
  --- END source---

-Original Message-
From: Kevin Meltzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 9:35 AM
To: messag from ESS
Cc: [EMAIL PROTECTED]
Subject: Re: yahoo mail did't compile HTML mail


You need a Content-Type header.
Content-Type: text/html; charset=iso-8859-1
(or whatever your charset is)

Cheers,
Kevin

On Tue, May 14, 2002 at 04:28:44PM +0300, messag from ESS
([EMAIL PROTECTED]) said something similar to:
  hi all
  I konw you havn't much time then I will begain directly
  Probem is:
  1- I make a program to send a mail.
  2- I send an HTML mail normaly to yahoo and hotmail.
  3- The hotmail compile it and display as a web bage.
  4- The yahoo did't compile it and display the HTML source !.
 
  Needed:
  1- why yahoo mail did not compile it.
  2- solve of this problem, or a way to solve it.
 
  --- START source---
  My source is:open(MAIL,|$mailp -t);
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
  --- END source---
 
  THANKS FOR YOUR HELP

--
[Writing CGI Applications with Perl - http://perlcgi-book.com]
Life Is Pain, Highness.  Anyone who says otherwise is selling something.
 -- The Dread Pirate Wesley, in the Princess Bride.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: yahoo mail did't compile HTML mail

2002-05-14 Thread Camilo Gonzalez

Doh! Sorry, try this:

--- START source---
open(MAIL,|$mailp -t);
  print MAIL Content-Type: text/html\n\n;
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
--- END source---

-Original Message-
From: messag from ESS [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 4:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: yahoo mail did't compile HTML mail


Thanks to all these brains which give a help to us,

1- I tried this with many options but didnt work,
Content-Type: text/html; charset=iso-8859-1

2-This and give me error not for simicolon only,
--- START source---
open(MAIL,|$mailp -t);
  print MAIL Content-Type: text/html\n\n;
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
--- END source---

anyone try to make like me before?

Thankx again

From: Camilo Gonzalez [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED], messag from ESS  
[EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: yahoo mail did't compile HTML mail
Date: Tue, 14 May 2002 11:47:32 -0500

Dude,

Try this

  --- START source---
  My source is:open(MAIL,|$mailp -t);
  print MAIL Content-Type: text/html\n\n;
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
  --- END source---

-Original Message-
From: Kevin Meltzer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 9:35 AM
To: messag from ESS
Cc: [EMAIL PROTECTED]
Subject: Re: yahoo mail did't compile HTML mail


You need a Content-Type header.
Content-Type: text/html; charset=iso-8859-1
(or whatever your charset is)

Cheers,
Kevin

On Tue, May 14, 2002 at 04:28:44PM +0300, messag from ESS
([EMAIL PROTECTED]) said something similar to:
  hi all
  I konw you havn't much time then I will begain directly
  Probem is:
  1- I make a program to send a mail.
  2- I send an HTML mail normaly to yahoo and hotmail.
  3- The hotmail compile it and display as a web bage.
  4- The yahoo did't compile it and display the HTML source !.
 
  Needed:
  1- why yahoo mail did not compile it.
  2- solve of this problem, or a way to solve it.
 
  --- START source---
  My source is:open(MAIL,|$mailp -t);
  print MAIL To: $email\n;
  print MAIL From: $wemail\n;
  print MAIL Subject: $subject\n\n;
  print MAIL $contents\n;
  close (MAIL);
  --- END source---
 
  THANKS FOR YOUR HELP

--
[Writing CGI Applications with Perl - http://perlcgi-book.com]
Life Is Pain, Highness.  Anyone who says otherwise is selling something.
 -- The Dread Pirate Wesley, in the Princess Bride.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Matt Wright's formMail

2002-05-14 Thread Dave Cross

On Mon, 13 May 2002 17:14:03 +0100, Drieux wrote:


 On Monday, May 13, 2002, at 08:52 , Kevin Meltzer wrote:
 
 try the rewrite from NMS:

 http://nms-cgi.sourceforge.net/

 Cheers,
 Kevin
 
 which version of the code is the 'problem' version?
 
 what is the current specific 'security' issue?
 
 there was a security update to v1.92 on 04/21/02 has there been some new
 issue arise??? since then?

Matt's version 1.92 fixes all of the spam relay problems with FormMail.
There are, I believe, a couple of Cross-Site Scripting vunerabilities
remaining.

However secure this version is, it's still written for Perl for and
doesn't use strict, -w, taint mode or CGI.pm. It's a really bad
example of Perl code and I wouldn't want anyone to see the source and
think they can learn Perl from it.

Dave...

-- 
  ...she opened strange doors that we'd never close again

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




opening a text file by more web page visitors?

2002-05-14 Thread Octavian Rasnita

Hi all,

I want to create a database with links to files from my server and from
other servers and for each link there  is an ID.
If a visitor wants to download a file, they click a link from a HTML page,
and the link looks like:
http://myServer.com/cgi-bin/download?file=123

My kind of database works fine.

What I would like to know is if this text file with ID's and links can be
opened in the same time by more web page visitors.
The  file will be opened only for reading and not for writing.

Is possible that more visitors use this database in the same time?

If it is not possible, what would you recommend?
Should I create a lock file and put the visitors to wait until the file is
closed by other visitors that opened the file?

Thank you!

Teddy,
[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Matt Wright's formMail

2002-05-14 Thread drieux


volks,

thanks for the scoop on what is what...

I'd prefer a gooder reason to a jihaud - and I think a sufficiency
of explanation has been presented. I R new to CGI in perl - sort of
had it thrust upon me since 'well you know perl'

On Tuesday, May 14, 2002, at 10:45 , Dave Cross wrote:
 On Mon, 13 May 2002 17:14:03 +0100, Drieux wrote:
[..]
 there was a security update to v1.92 on 04/21/02 has there been some new
 issue arise??? since then?

 Matt's version 1.92 fixes all of the spam relay problems with FormMail.
 There are, I believe, a couple of Cross-Site Scripting vunerabilities
 remaining.

thanks for the heads up on that. My working premise then is that any
such issues are closed in the nms? I have only just started to
deconstruct it. There seems to be way more firepower in this
than I think we will want to use but...

I have found a few things I would wonder about - but these tend to
be the sorts of trade offs on when is it really better to code
in line - or have a simple function test

 However secure this version is, it's still written for Perl for and
 doesn't use strict, -w, taint mode or CGI.pm. It's a really bad
 example of Perl code and I wouldn't want anyone to see the source and
 think they can learn Perl from it.
[..]

So far about the only complaint I have with the nms FormMail
is that the tarball did not come with a version number in it,
hence I have no tracking control on the tarball or the folder
that it generates.

Unfortunately, I R 'the perl guy' - and the version 1.65? that
had been running ran for a few years without problems - and it
was only recently that the relay attack was executed - and I was
asked to take a look to figure out what could be done to fix it,
hence hauled in the 1.92 version - verified it was ok, and we
were back in bizniz... But that is also why I R Here and asking
the 'ok, so I'm Blithely Naive...' classes of questions.


ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CGI and frames

2002-05-14 Thread Todd Wade


Sven Bentlage [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

frameset rows=80,* frameborder=NO border=0 framespacing=0
  frame src=path/to/file name=topFrame scrolling=NO noresize 
  frame src=path/to/file name=mainFrame
/frameset

make the src attribute read something like: path/to/file?section=topFrame
and path/to/file?section=mainFrame or whatever.

Then have the cgi program call those subs based on the value of the section
parameter.

Todd W



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]