Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Win32 Help!

  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    Reno, NV
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    Reno, NV
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    the Netherlands
    Posts
    215
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think it should be posible with JavaScript; I've seen it somewhere a few years ago. Ask in the JavaScript forum.

    Mzzl, Chris


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •