RE: Using variable to another script

2003-02-06 Thread wiggins
On Thu, 6 Feb 2003 13:59:51 +0800, Glynn S. Condez [EMAIL PROTECTED] wrote: Hi all, I have a question. From a web form, i pass the info to a cgi script. i have this variable on the script: $username = param('username'); $lastname =

using variable to another script

2003-02-06 Thread Glynn S. Condez
Hi all, I have a question. From a web form, i pass the info to a cgi script. i have this variable on the script: $username = param('username'); $lastname = param('lastname'); my question is, how can i use that two variable to another script open by this command: system('sudo', '-u', 'www',

Weekly list FAQ posting

2003-02-06 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email

RE: Cookie INfo

2003-02-06 Thread Kipp, James
You also might want some background on the HTTP header field for Set-Cookie - sort of behind the scenes of what the CGI module does. I'd suggest some research for RFC 2109 and http set-cookie. I found this helpful to understand the simple cookie header-field syntax, separate from the

RE: Using variable to another script

2003-02-06 Thread Kipp, James
$username = param('username'); $lastname = param('lastname'); my question is, how can i use that two variable to another script open by this command: system('sudo', '-u', 'www', '/path/to/anotherscript.pl'); Is that possible? You could redirect to another url: print $q-redirect(

Parsing a file as it is being served

2003-02-06 Thread Philip Pawley
I want to be able to adapt my web-files, as they are being served, so that older browsers get an xhtml 1.0-transitional version instead of the default xhtml 1.1 version. This will involve replacing the DOCTYPE declaration and, also, various xhtml tags to include deprecated html attributes. This

RE: Premature end of script headers

2003-02-06 Thread Bob Showalter
[redirected to beginners-cgi list] zegdatwel wrote: hi, Premature end of script headers what can this mean...it's in the error log. When does this happen? I got error 500 when executing script. It means your script ended (normally or abnormally) before emitting a proper MIME header. The

RE: Cookie INfo

2003-02-06 Thread Kipp, James
Do you have a specific question? it seems: http://search.cpan.org/author/LDS/CGI.pm-2.89/CGI.pm#HTTP_COOKIES Covers things pretty extensively, short of looking at the source to see how things are implemented rather than just the API. Really very little to them. I have a

RE: Cookie INfo

2003-02-06 Thread Kipp, James
All am I am trying to do now is have a user enter his/her name in a form and have that saved to a cookie, so when they return, they will get something like Your juser, please proceed . I took the example here: http://stein.cshl.org/WWW/CGI/examples/cookie.cgi Below is the code I am

Re: Using variable to another script

2003-02-06 Thread Randal L. Schwartz
James == James Kipp [EMAIL PROTECTED] writes: James or use a hidden param in a form: James print qq( James FORM METHOD=POST action=http://yourhost/another.cgi; James INPUT TYPE=hidden NAME=username VALUE=$username James INPUT TYPE=submit VALUE=submit James /FORM James ); No, no, no. You