Automatic HTML redirect posting parameters and re-using them again (NOOB ALERT)

تبليغ
سؤال

يرجى شرح بإيجاز لمإذا تشعر أنك ينبغي الإبلاغ عن هذا السؤال.

تبليغ
‎إلغاء

I have a few things I want to do programatically… and to make it more difficult it must happen in HTML (javascript can be used)..

1.) If I go to page1.com, I want to pick up the current page’s URL (page1.com) as a “variable/parameter” and automatically redirect and post the URL to a new page – www.page2.com (it must be possible to pick up the current URL with a javascript?)

So, www.page1.com automatically redirects to page2.com posting “page1.com” to page2.com

then…

2.) On page2.com I want to pick up and display “you have been redirected here from page1.com” – page1.com being the variable/parameter posted from the initial page.

but…

3.) I preferably don’t want to use a URL encode as then it’s easy to manipulate the input if the redirect is “page2.com?url=page1.com” – THUS the reason I want to post page1.com to page2.com – as I understand it the post will not display in the URL but in the page itself?

Hope this makes sense?

‫أضف إجابة

تصفح
تصفح

مجهول يجيب