egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TCL $variable behind URL ??

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
franko
Voice


Joined: 26 Jul 2009
Posts: 4

PostPosted: Mon Jul 27, 2009 4:30 pm    Post subject: TCL $variable behind URL ?? Reply with quote

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
View user's profile Send private message
tomekk
Master


Joined: 28 Nov 2008
Posts: 255
Location: Oswiecim / Poland

PostPosted: Tue Jul 28, 2009 2:47 pm    Post subject: Reply with quote

Code:
http::geturl $url


and see the ::http::formatQuery
http://tmml.sourceforge.net/doc/tcl/http.html
Back to top
View user's profile Send private message Visit poster's website
franko
Voice


Joined: 26 Jul 2009
Posts: 4

PostPosted: Tue Jul 28, 2009 6:35 pm    Post subject: Reply with quote

I dont get a clean query Confused

Just get the msg "no such team" :/
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Tue Jul 28, 2009 7:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber