Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLEASE HELP WITH PARAMETERS

Status
Not open for further replies.

gcastillo

Programmer
Jun 9, 2000
127
MX
I'm opening a new browser with data from another page. I need to send a parameter between them, but I have no idea how to do that.... When I'm opening a Details Page, it works fine, but with a new browser, the parameter does'nt work!!  Please help!!!
 
I don't know how you open a new window, so let's say you have a link and in this case it would be as follows:<br>&lt;a href=&quot;newpage.asp?par1=value1&par2=value2&quot; target=&quot;_blank&quot;&gt;Click to open in new window&lt;/a&gt;<br>Then in your newpage.asp you should be able to get these values using request.querystring:<br><br>&lt;%<br>&nbsp;dim param1,param2<br>&nbsp;param1 = request.querystring(&quot;par1&quot;)<br>&nbsp;param2 = request.querystring(&quot;par2&quot;) <br><br>%&gt;<br>That's a general idea, because I don't know the details.<br>Good luck.<br><br>
 
I'm opening the new browser with this code:<br>&nbsp;&nbsp;&nbsp;&lt;img src=&quot;&lt;%=(rsDrawing.Fields.Item(&quot;thnFotoLoca&quot;).Value)%&gt;&quot; onMouseDown=&quot;MM_openBrWindow('/pagmasTest.asp?&lt;%=(rsHousesDetails.Fields.Item(&quot;clave_propiedad&quot;).Value)%&gt;=','','width=320,height=200')&quot; border=&quot;0&quot;&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;I made it with a WYSIWYG software (Dreamweaver), and I think I'm sending clave_propiedad as my parameter.<br>&nbsp;&nbsp;But I don't know how to receive it in my pagmasTest.asp that's my new browser....<br><br>&nbsp;&nbsp;Thanks for your help
 
I think you should add the name of the parameter(this could be whatever comes to your mind)in the place highlighted with red right after the question mark an don't forget equals sign either:<br>&lt;img src=&quot;&lt;%=(rsDrawing.Fields.Item(&quot;thnFotoLoca&quot;).Value)%&gt;&quot; onMouseDown=&quot;MM_openBrWindow('/pagmasTest.asp?<br><font color=red>name_of_the_parameter=</font>&lt;%=(rsHousesDetails.Fields.Item(&quot;clave_propiedad&quot;).Value)%&gt;=','','width=320,height=200')&quot; border=&quot;0&quot;&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top