tags:

views:

34

answers:

2

Hello

I am sending two data to my php from my javascript: http://forum.research.bell-labs.com/zeeshan/publication/phpwithmysql11111.php?rowid=BL09.00001,0

1) BL09.00001 2) 0

How do I recognize them separately in my php? I was trying to do:

$job=$_GET[rowid]; echo($job);

this gives me both the fields.

+4  A: 

Just split $GET['rowid'] on the comma. See:

http://us2.php.net/manual/en/function.explode.php

byte
+1  A: 

I'd say you need to name the second parameter as well as the first in your GET request.

Use a URL like this: http://forum...../phpwithmysql11111.php?rowid=BL09.00001&other=1

Then, $_GET['rowid'] should be BL09.00001 and $_GET['other'] should be 1.

Brian
Thanks Brian, I wanted to do the same, but i was not able to. my javascript code looks like this:function show(jobno,arrno) { window.open( 'phpwithmysql11111.php?rowid='+jobno, 'tesing','status=0,width=100,height=100' ); return false;}what should i change in it to make it work like that?
Zeeshan Rang
Brian