• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help with Javascript...

Status
Not open for further replies.
Level 15
Joined
Aug 11, 2009
Messages
1,606
I need help with this fast if possible...

take a look at this...
PHP:
<center><b>Level 2</b></center><br />Network Security Sam set up a password protection script. He made it load the real password from an unencrypted text file and compare it to the password the user enters. However, he neglected to upload the password file...<br /><br /><center><b>Password:</b /><br />
          <form action="/missions/basic/2/index.php" method="post">
          <input type="password" name="password" /><br /><br />
          <input type="submit" value="submit" /></form>

Hope you understood the concept...

I have to use something like
PHP:
java script:void(document.forms[0].password.value=Mission2/upload.txt);alert(document.forms[0].password.value)

to upload a txt file from my comp to provide the password to this, the problem is that i'm not good with JavaScript and i am probably doing something wrong with the syntax.

Anyone can help me by showing me the proper code?
 
Status
Not open for further replies.
Top