Forum Moderators: open

Message Too Old, No Replies

Help with query string

<?php echo $_GET['value']?> equivalent?

         

roitracker

8:31 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



Hi all,

What is the equivalent to PHP for embedding query string data into a form?

I thought that <% Request.Querystring("value") %> would work on a .asp page, but apparently not!

Am I missing something?

TIA.

Note: I'm clueless when it comes to ASP, so any help appreciated!

laura2k

8:35 pm on Feb 6, 2004 (gmt 0)



<%=Request.Querystring("value")%> is find and should work, i am assuming you are aware that you have to call your script like this script.asp?value=123454 if you are trying to call it like .asp?12345 then thats incorrect.

roitracker

8:47 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



Yes, I'm calling it like that (/test.asp?value=X&value2=Y), so I don't know why it isn't working.

It's on a client's site that's hosted on NT (which I know nothing about) & I assumed ASP would be on by default. Do you think that ASP may *not* be enabled?

laura2k

9:15 pm on Feb 6, 2004 (gmt 0)



when you call your script like test.asp?value=1 view the source and check whats in the source, if the actual <% tags are there then asp is not installed.

defanjos

9:25 pm on Feb 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You have <% Request.Querystring("value") %>

laura2k showed you the right way: <%=Request.Querystring("value")%>

(notice the "=" sign)

wackal

9:56 pm on Feb 6, 2004 (gmt 0)

10+ Year Member



are you trying to get everything after the?

just do <%= Request.Querystring %>

roitracker

7:02 pm on Feb 7, 2004 (gmt 0)

10+ Year Member



Many thanks!