Go Back   CodingForums.com > :: Server side development > Perl/ CGI

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-16-2002, 01:01 PM   PM User | #1
renoboi
New Coder

 
Join Date: Jul 2002
Location: Reno, NV
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
renoboi is an unknown quantity at this point
Question Win32 Help!

system(cp,"file1,"file2"); this is how you copy a file from cgi in unix right?

I'm runnung winnt 5.1 with perl5.6.1 and apache2.
so i figured i'd just change it to "system(copym"file1","file2");" but that didn't quite work.
it copies the file like it's supposed to and then gives an error:
"malformed header from script. Bad header= 1 file(s) copied.: "
what do i do now?
renoboi is offline   Reply With Quote
Old 07-16-2002, 02:22 PM   PM User | #2
chrisvmarle
Regular Coder

 
Join Date: Jun 2002
Location: the Netherlands
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
chrisvmarle is an unknown quantity at this point
I don't know how to suppress the output of the copym command, but you could write a right header instead:

print "Content-type: text/html\n\n";
system(copym"file1","file2");

Mzzl, Chris
chrisvmarle is offline   Reply With Quote
Old 07-16-2002, 04:02 PM   PM User | #3
renoboi
New Coder

 
Join Date: Jul 2002
Location: Reno, NV
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
renoboi is an unknown quantity at this point
Yes that works. thank you much.

another question,

I have two login forms on my main page, one for a web based email script, and the other for a community thingee. here's waht i want to do. I want one form, (username, password, etc) with two submit buttons (one for each thing). is this possible? basically i would need to have two form actions somehow?
renoboi is offline   Reply With Quote
Old 07-16-2002, 04:24 PM   PM User | #4
chrisvmarle
Regular Coder

 
Join Date: Jun 2002
Location: the Netherlands
Posts: 215
Thanks: 0
Thanked 0 Times in 0 Posts
chrisvmarle is an unknown quantity at this point
I think it should be posible with JavaScript; I've seen it somewhere a few years ago. Ask in the JavaScript forum.

Mzzl, Chris
chrisvmarle is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:09 PM.


Advertisement
Log in to turn off these ads.