View Full Version : Win32 Help!

07-16-2002, 01:01 PM
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?

07-16-2002, 02:22 PM
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";

Mzzl, Chris

07-16-2002, 04:02 PM
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?

07-16-2002, 04:24 PM
I think it should be posible with JavaScript; I've seen it somewhere a few years ago. Ask in the JavaScript forum (http://www.codingforums.com/forumdisplay.php?s=&forumid=2).

Mzzl, Chris