mIRC Home    About    Download    Register    News    Help

Print Thread
#111578 16/02/05 11:16 PM
Joined: Oct 2004
Posts: 31
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2004
Posts: 31
Can you use sockets to open an html txt file in your mIRC folder so:

Here is the code:
Code:
<form action="www.url.com" method="post" name="go1">
<select name="Options">
Options:
<option label="Option1" value="opt1">Option 1</option>
<option label="Option 2" value="opt2">Option 2</option>
</select><BR>
Number:
<input type="text" size="3" name="num" value="1">
<input name="go2" type="submit" value="Send">
</form>




I want them to type !send 1 4
The first number would be option number
example
if ($1 == 1) { set %option opt1 }


The 4 would be whats entered in the text box called num
Then it would send that

I would have a whole form there, but I dont want it online, just in my folder (file called form.html)

Is there a way to do this with sockets
I have been trying to learn them by tutorials, but havnt gotten much
Im hoping if I get this code, I can learn what everything does

Any help is apprciated


Bear

#111579 16/02/05 11:50 PM
Joined: Oct 2003
Posts: 88
B
Babel fish
Offline
Babel fish
B
Joined: Oct 2003
Posts: 88
Just because the file is in HTML, dosnet mean you need to use sockets. Write it like any othe file with /write


Basicer - Windows 7 Business x86
#111580 17/02/05 12:37 AM
Joined: Oct 2004
Posts: 31
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Oct 2004
Posts: 31
heh
Ive tried to learn /write, but I have a mental block (too much chlorine in my brain)
Get my started?


Bear

#111581 17/02/05 08:28 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
Code:
;Clears the file
/write -c form.html
;Begin writing, you can through it all in one line if you want with one write or spread it out
/write form.html <html><head><title>Hi</title></head>
/write form.html <body>
/write form.html Hi
/write form.html </body>
/write form.html </html>
  


Link Copied to Clipboard