Re: [PHP] url without a query string?
Hi Jon! On Mon, 09 Jul 2001, Jon Yaggie wrote: > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that > uses a remote service. this service requires that thee be the exact > same refering url. is the refering url must always be index.php. how > can i do this? can i do this? > fake it by sending a Referer header. -- teodor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
heh.. y not u use the post method?? use a form.. put in the hidden form... and document.theformname.submit(); eg: document.theform.submit(); Jon Yaggie <[EMAIL PROTECTED]> wrote in message 037601c1083b$b6583010$0100a8c0@piiimonster">news:037601c1083b$b6583010$0100a8c0@piiimonster... > problem with a session is the link originates at another domain. so as far > as i know i can pass a session between domains. > > yes js is not a problem except i dont know it. and refrshing is possible > because on first load i will set up a session. can you specficate a url to > refresh?? so that i cna refresh it without the query string? > > > > > > > > > > Thank You, > > Jon Yaggie > www.design-monster.com > > And they were singing . . . > > '100 little bugs in the code > 100 bugs in the code > fix one bug, compile it again > 101 little bugs in the code > > 101 little bugs in the code . . .' > > And it continued until they reached 0 > > > - Original Message - > From: "James Tan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, July 09, 2001 12:37 PM > Subject: Re: [PHP] url without a query string? > > > > hie... > > if i'm not wrong.. u could try using session :) > > > > that way, ucan have index.php s u ish :) > > > > --login.php-- > > session_start(); > > $id = 1; > > sessoin_register("id"); > > --index.php-- > > session_start(); > > $memid = $id-0; > > // **statement** > > > > > > hope it helps.. > > good luck :) > > > > regards, > > > > James > > Jon Yaggie <[EMAIL PROTECTED]> wrote in message > > 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster... > > > i have nothing to do with the popup stuff :) > > > > > > - Original Message - > > > From: "Ben Bleything" <[EMAIL PROTECTED]> > > > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; > > <[EMAIL PROTECTED]> > > > Sent: Monday, July 09, 2001 11:37 AM > > > Subject: RE: [PHP] url without a query string? > > > > > > > > > > Yikes. Popups and porn. > > > > > > > > Anyhoo, I guess I can't help you. I just don't know enough about the > > > > inner workings of http. > > > > > > > > Sorry => > > > > > > > > Ben > > > > > > > > -Original Message- > > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > > Sent: Sunday, July 08, 2001 9:34 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: Re: [PHP] url without a query string? > > > > > > > > i mean this is coming from a hardcoded link. > > > > > > > > example > > > > > > > > www.design-monster.com links to www.site.com/index.php?id=4 > > > > but site www.hopeless.com links to www.site.com/index.php?id=2 > > > > > > > > both these then have a membership link on them and the memebership > > > > service > > > > uses the refering url. but the referer needs to be exact. so the > query > > > > string needs to be stripped some how? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thank You, > > > > > > > > Jon Yaggie > > > > www.design-monster.com > > > > > > > > And they were singing . . . > > > > > > > > '100 little bugs in the code > > > > 100 bugs in the code > > > > fix one bug, compile it again > > > > 101 little bugs in the code > > > > > > > > 101 little bugs in the code . . .' > > > > > > > > And it continued until they reached 0 > > > > > > > > > > > > - Original Message - > > > > From: "Ben Bleything" <[EMAIL PROTECTED]> > > > > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; > > > > <[EMAIL PROTECTED]> > > > > Sent: Monday, July 09, 2001 11:25 AM > > > > Subject: RE: [PHP] url without a query string? > > > > > > > > > > > > > A shot in the dark would be to use HTTP Post instead of Get... but, > I > > > > > don't know http. > >
RE: [PHP] url without a query string?
On 09-Jul-01 Jon Yaggie wrote: > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that uses > a remote service. this service requires that thee be the exact same > refering url. is the refering url must always be index.php. how can i do > this? can i do this? > Depends on how the remote validates the referal; since they want index.php; assume they use php as well, and get the referrer like everybody else, from $HTTP_REFERER ... so add on a "&HTTP_REFERER=/php/index.php&id=foo" to the POST/ GET. That should do it unless they've done un-speakable things to Apache/PHP. Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
problem with a session is the link originates at another domain. so as far as i know i can pass a session between domains. yes js is not a problem except i dont know it. and refrshing is possible because on first load i will set up a session. can you specficate a url to refresh?? so that i cna refresh it without the query string? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: "James Tan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 12:37 PM Subject: Re: [PHP] url without a query string? > hie... > if i'm not wrong.. u could try using session :) > > that way, ucan have index.php s u ish :) > > --login.php-- > session_start(); > $id = 1; > sessoin_register("id"); > --index.php-- > session_start(); > $memid = $id-0; > // **statement** > > > hope it helps.. > good luck :) > > regards, > > James > Jon Yaggie <[EMAIL PROTECTED]> wrote in message > 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster... > > i have nothing to do with the popup stuff :) > > > > - Original Message - > > From: "Ben Bleything" <[EMAIL PROTECTED]> > > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > > Sent: Monday, July 09, 2001 11:37 AM > > Subject: RE: [PHP] url without a query string? > > > > > > > Yikes. Popups and porn. > > > > > > Anyhoo, I guess I can't help you. I just don't know enough about the > > > inner workings of http. > > > > > > Sorry => > > > > > > Ben > > > > > > -Original Message- > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > Sent: Sunday, July 08, 2001 9:34 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: [PHP] url without a query string? > > > > > > i mean this is coming from a hardcoded link. > > > > > > example > > > > > > www.design-monster.com links to www.site.com/index.php?id=4 > > > but site www.hopeless.com links to www.site.com/index.php?id=2 > > > > > > both these then have a membership link on them and the memebership > > > service > > > uses the refering url. but the referer needs to be exact. so the query > > > string needs to be stripped some how? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thank You, > > > > > > Jon Yaggie > > > www.design-monster.com > > > > > > And they were singing . . . > > > > > > '100 little bugs in the code > > > 100 bugs in the code > > > fix one bug, compile it again > > > 101 little bugs in the code > > > > > > 101 little bugs in the code . . .' > > > > > > And it continued until they reached 0 > > > > > > > > > - Original Message - > > > From: "Ben Bleything" <[EMAIL PROTECTED]> > > > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; > > > <[EMAIL PROTECTED]> > > > Sent: Monday, July 09, 2001 11:25 AM > > > Subject: RE: [PHP] url without a query string? > > > > > > > > > > A shot in the dark would be to use HTTP Post instead of Get... but, I > > > > don't know http. > > > > > > > > -Original Message- > > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > > Sent: Sunday, July 08, 2001 9:22 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP] url without a query string? > > > > > > > > the problem > > > > > > > > i have a page that uses a query string to determine content. ie > > > > index.php?id=2 in this page there is a link to a memebership area > > > that > > > > uses a remote service. this service requires that thee be the exact > > > > same refering url. is the refering url must always be index.php. how > > > > can i do this? can i do this? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thank You, > > > > > > > > Jon Yaggie > > > > www.design-monster.com > > > > > > > > And they were singing . . . > > > > > > > > '100 little bugs in the code > > > > 100 bugs in the code > > > > fix one bug, compile it again > > > > 101 little bugs in the code > > > > > > > > 101 little bugs in the code . . .' > > > > > > > > And it continued until they reached 0 > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
hie... if i'm not wrong.. u could try using session :) that way, ucan have index.php s u ish :) --login.php-- session_start(); $id = 1; sessoin_register("id"); --index.php-- session_start(); $memid = $id-0; // **statement** hope it helps.. good luck :) regards, James Jon Yaggie <[EMAIL PROTECTED]> wrote in message 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster... > i have nothing to do with the popup stuff :) > > - Original Message - > From: "Ben Bleything" <[EMAIL PROTECTED]> > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, July 09, 2001 11:37 AM > Subject: RE: [PHP] url without a query string? > > > > Yikes. Popups and porn. > > > > Anyhoo, I guess I can't help you. I just don't know enough about the > > inner workings of http. > > > > Sorry => > > > > Ben > > > > -Original Message- > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, July 08, 2001 9:34 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PHP] url without a query string? > > > > i mean this is coming from a hardcoded link. > > > > example > > > > www.design-monster.com links to www.site.com/index.php?id=4 > > but site www.hopeless.com links to www.site.com/index.php?id=2 > > > > both these then have a membership link on them and the memebership > > service > > uses the refering url. but the referer needs to be exact. so the query > > string needs to be stripped some how? > > > > > > > > > > > > > > > > > > > > Thank You, > > > > Jon Yaggie > > www.design-monster.com > > > > And they were singing . . . > > > > '100 little bugs in the code > > 100 bugs in the code > > fix one bug, compile it again > > 101 little bugs in the code > > > > 101 little bugs in the code . . .' > > > > And it continued until they reached 0 > > > > > > - Original Message - > > From: "Ben Bleything" <[EMAIL PROTECTED]> > > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; > > <[EMAIL PROTECTED]> > > Sent: Monday, July 09, 2001 11:25 AM > > Subject: RE: [PHP] url without a query string? > > > > > > > A shot in the dark would be to use HTTP Post instead of Get... but, I > > > don't know http. > > > > > > -Original Message- > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > Sent: Sunday, July 08, 2001 9:22 PM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] url without a query string? > > > > > > the problem > > > > > > i have a page that uses a query string to determine content. ie > > > index.php?id=2 in this page there is a link to a memebership area > > that > > > uses a remote service. this service requires that thee be the exact > > > same refering url. is the refering url must always be index.php. how > > > can i do this? can i do this? > > > > > > > > > > > > > > > > > > > > > > > > Thank You, > > > > > > Jon Yaggie > > > www.design-monster.com > > > > > > And they were singing . . . > > > > > > '100 little bugs in the code > > > 100 bugs in the code > > > fix one bug, compile it again > > > 101 little bugs in the code > > > > > > 101 little bugs in the code . . .' > > > > > > And it continued until they reached 0 > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
What are the requirements? Can you allow JS code? Meta refresh tags? - Original Message - From: "Jon Yaggie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 2:22 PM Subject: [PHP] url without a query string? the problem i have a page that uses a query string to determine content. ie index.php?id=2 in this page there is a link to a memebership area that uses a remote service. this service requires that thee be the exact same refering url. is the refering url must always be index.php. how can i do this? can i do this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
i have nothing to do with the popup stuff :) - Original Message - From: "Ben Bleything" <[EMAIL PROTECTED]> To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:37 AM Subject: RE: [PHP] url without a query string? > Yikes. Popups and porn. > > Anyhoo, I guess I can't help you. I just don't know enough about the > inner workings of http. > > Sorry => > > Ben > > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 08, 2001 9:34 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] url without a query string? > > i mean this is coming from a hardcoded link. > > example > > www.design-monster.com links to www.site.com/index.php?id=4 > but site www.hopeless.com links to www.site.com/index.php?id=2 > > both these then have a membership link on them and the memebership > service > uses the refering url. but the referer needs to be exact. so the query > string needs to be stripped some how? > > > > > > > > > > Thank You, > > Jon Yaggie > www.design-monster.com > > And they were singing . . . > > '100 little bugs in the code > 100 bugs in the code > fix one bug, compile it again > 101 little bugs in the code > > 101 little bugs in the code . . .' > > And it continued until they reached 0 > > > - Original Message - > From: "Ben Bleything" <[EMAIL PROTECTED]> > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Monday, July 09, 2001 11:25 AM > Subject: RE: [PHP] url without a query string? > > > > A shot in the dark would be to use HTTP Post instead of Get... but, I > > don't know http. > > > > -Original Message- > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, July 08, 2001 9:22 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] url without a query string? > > > > the problem > > > > i have a page that uses a query string to determine content. ie > > index.php?id=2 in this page there is a link to a memebership area > that > > uses a remote service. this service requires that thee be the exact > > same refering url. is the refering url must always be index.php. how > > can i do this? can i do this? > > > > > > > > > > > > > > > > Thank You, > > > > Jon Yaggie > > www.design-monster.com > > > > And they were singing . . . > > > > '100 little bugs in the code > > 100 bugs in the code > > fix one bug, compile it again > > 101 little bugs in the code > > > > 101 little bugs in the code . . .' > > > > And it continued until they reached 0 > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] url without a query string?
Yikes. Popups and porn. Anyhoo, I guess I can't help you. I just don't know enough about the inner workings of http. Sorry => Ben -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] url without a query string? i mean this is coming from a hardcoded link. example www.design-monster.com links to www.site.com/index.php?id=4 but site www.hopeless.com links to www.site.com/index.php?id=2 both these then have a membership link on them and the memebership service uses the refering url. but the referer needs to be exact. so the query string needs to be stripped some how? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: "Ben Bleything" <[EMAIL PROTECTED]> To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:25 AM Subject: RE: [PHP] url without a query string? > A shot in the dark would be to use HTTP Post instead of Get... but, I > don't know http. > > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 08, 2001 9:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] url without a query string? > > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that > uses a remote service. this service requires that thee be the exact > same refering url. is the refering url must always be index.php. how > can i do this? can i do this? > > > > > > > > Thank You, > > Jon Yaggie > www.design-monster.com > > And they were singing . . . > > '100 little bugs in the code > 100 bugs in the code > fix one bug, compile it again > 101 little bugs in the code > > 101 little bugs in the code . . .' > > And it continued until they reached 0 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] url without a query string?
i mean this is coming from a hardcoded link. example www.design-monster.com links to www.site.com/index.php?id=4 but site www.hopeless.com links to www.site.com/index.php?id=2 both these then have a membership link on them and the memebership service uses the refering url. but the referer needs to be exact. so the query string needs to be stripped some how? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 - Original Message - From: "Ben Bleything" <[EMAIL PROTECTED]> To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:25 AM Subject: RE: [PHP] url without a query string? > A shot in the dark would be to use HTTP Post instead of Get... but, I > don't know http. > > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 08, 2001 9:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] url without a query string? > > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that > uses a remote service. this service requires that thee be the exact > same refering url. is the refering url must always be index.php. how > can i do this? can i do this? > > > > > > > > Thank You, > > Jon Yaggie > www.design-monster.com > > And they were singing . . . > > '100 little bugs in the code > 100 bugs in the code > fix one bug, compile it again > 101 little bugs in the code > > 101 little bugs in the code . . .' > > And it continued until they reached 0 > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] url without a query string?
A shot in the dark would be to use HTTP Post instead of Get... but, I don't know http. -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:22 PM To: [EMAIL PROTECTED] Subject: [PHP] url without a query string? the problem i have a page that uses a query string to determine content. ie index.php?id=2 in this page there is a link to a memebership area that uses a remote service. this service requires that thee be the exact same refering url. is the refering url must always be index.php. how can i do this? can i do this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] url without a query string?
the problem i have a page that uses a query string to determine content. ie index.php?id=2 in this page there is a link to a memebership area that uses a remote service. this service requires that thee be the exact same refering url. is the refering url must always be index.php. how can i do this? can i do this? Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0