| View previous topic :: View next topic |
| Author |
Message |
franko Voice
Joined: 26 Jul 2009 Posts: 4
|
Posted: Mon Jul 27, 2009 4:30 pm Post subject: TCL $variable behind URL ?? |
|
|
Hi...
Today i got another problem..
I want to send an variable to a URL
My script:
| Code: |
package require http
bind pub - !team fp:teams
proc fp:teams {nick uhost hand chan text} {
set url "http://website.com/team.php?team="
html $url
}
|
I want to use !team NAME to get this URL -> http://website.com/team.php?team=NAME
The PHP file includes the connection part to IRC.
I just wanna open this file with trigger.
lg |
|
| Back to top |
|
 |
tomekk Master

Joined: 28 Nov 2008 Posts: 255 Location: Oswiecim / Poland
|
|
| Back to top |
|
 |
franko Voice
Joined: 26 Jul 2009 Posts: 4
|
Posted: Tue Jul 28, 2009 6:35 pm Post subject: |
|
|
I dont get a clean query
Just get the msg "no such team" :/ |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Tue Jul 28, 2009 7:46 pm Post subject: |
|
|
have you used anything to select the team? like | Code: | set team [lindex [split $text] 0]
set url "http://website.com/team.php?team=$team"
...(rest of the code) |
_________________ TCL the misunderstood |
|
| Back to top |
|
 |
|