• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Multiple nickmeta values from commandline...

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
4 posts • Page 1 of 1

Postby NeoEspecialista » Thu Jul 19, 2012 5:10 pm

Hi all,

i'm doing my own chat that is started from a remote program.
Program launchs a commandline that looks like this:

www.mysite.com/phpchat/index.htm?user=M ... &s=M&p=NYC

on my index.htm i have:

$User = $_REQUEST['u'];
$Sex = $_REQUEST['s'];
$Age = $_REQUEST['e'];
$Place = $_REQUEST['p'];

I had checked the variables was received ok.

after init the class and some params, i do:

$params["nickmeta"] = array('Sex'=>$Sex,'Age'=>$Age,'Place'=>$Place);

and not works.

If i do:

$params["nickmeta"] = array('Sex'=>'M','Age'=>'41','Place'=>'NYC');

it works fine.

What is wrong on this line ?

Thanks in advance,
David
NeoEspecialista
New member
 
Posts: 2
Joined: Thu Jul 19, 2012 4:59 pm
Top

Postby re*s.t.a.r.s.*2 » Thu Jul 19, 2012 8:00 pm

Hi,

Sorry but the chat just doesnt respond well using $_GET , try passing the parameter tru session and should work.

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby NeoEspecialista » Fri Jul 20, 2012 5:56 pm

Thanks re*s.t.a.r.s.*2

I had done this modify:

session_start();
$_SESSION['User'] = $_REQUEST['u'];
$_SESSION['Sex'] = $_REQUEST['s'];
$_SESSION['Age'] = $_REQUEST['e'];
$_SESSION['Place'] = $_REQUEST['p'];

I tested if variables worked with:

Echo $_SESSION['User'] .' '. $_SESSION['Sex'] .' '. $_SESSION['Age'] .' '. $_SESSION['Place'];

And variables was printed ok.

after this, i did:

$params['nickmeta']['Sex'] = $_SESSION['Sex'];
$params['nickmeta']['Age'] = $_SESSION['Age'];
$params['nickmeta']['Place'] = $_SESSION['Place'];

But the script stopped work.

Any ideas ?

Thanks in advance again,
David
NeoEspecialista
New member
 
Posts: 2
Joined: Thu Jul 19, 2012 4:59 pm
Top

Postby re*s.t.a.r.s.*2 » Fri Jul 20, 2012 9:20 pm

Hi,

Set those vars in a page before redirect and pass it to index.php of phpfreechat... , remember to start the session at index.php also.. then surely will work.

regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 65 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub