2 variables in an URL

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/...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-04-2006
stephane
 
Posts: n/a
Default 2 variables in an URL

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.



Reply With Quote
  #2 (permalink)  
Old 04-04-2006
Roger Dodger
 
Posts: n/a
Default Re: 2 variables in an URL


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.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0