This is a discussion on 2 variables in an URL within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I thought it was possible to send two variables in an URL like this: print" <script type='text/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I thought it was possible to send two variables in an URL
like this: print" <script type='text/javascript'> document.location.replace('http://127.0.0.1/add_task.php?tk_request_name={$req_name}?tk_req_id ={$maxValue}'); </script>"; but I can't get them separately in add_task.php is there something wrong with script? I know this is mainly javascript here, but I use it in php code though. |
|
|||
|
stephane wrote: > I thought it was possible to send two variables in an URL > like this: > > print" <script type='text/javascript'> > document.location.replace('http://127.0.0.1/add_task.php?tk_request_name={$req_name}?tk_req_id ={$maxValue}'); > </script>"; > > but I can't get them separately in add_task.php > > is there something wrong with script? > > I know this is mainly javascript here, but I use it in php code though. Try an ampersand & between the two variables rather than a question mark. |