-
November 29th, 2003, 02:54 AM
#1
get a variable from another page
Hello
I sent a variable from page1.html using the get method
now I want to show it in page2.html.
I dont want to use asp.
is there something in vbscript that can get this parameter(myParam)?
file:///C:/Documents%20and%20Settings/Desktop/page2.html?myParam=tyiti
thanks Asaf
-
November 29th, 2003, 04:28 AM
#2
NO!!!
For that You can use server-side script language - PHP, ASP, Perl, Python or other. VBScript and JavaScript are client-side script languages
at Your service always,
professorX
-
November 29th, 2003, 04:42 AM
#3
it just seemed to be so easy - just parsing the url
in this way or another...
and getting the parameters I need.
Anyway
thanks for saving me the time of chaising this ghost- I wouldn't
stopped - I was just too sure there is a way :P
Thanks
Asaf
-
December 1st, 2003, 04:42 PM
#4
I dont recommend this, but since the question was "is this possible?", the answer is yes.
Check this out...
http://www.planet-source-code.com/vb...txtCodeId=6987
Satish
-
December 2nd, 2003, 01:56 AM
#5
Yes, it's possible, but it's no so good way...
In JS can try it:
qs = "?show=blabla1&show=blabla2...";
qsArray = qs.split(/\?show=|&show=/gi);
at Your service always,
professorX
-
December 3rd, 2003, 11:08 PM
#6
easily done in php using
PHP Code:
setcookie('name, 'variable', time_to_cancel);
( more info here)
on the next page
PHP Code:
if(isset($_COOKIE['cookie'])){
'do crap
}
"3 out of every 4 people make up 75% of the population"
---------------------------------------------
"If the World didn't suck, we would all fall off"
---------------------------------------------
"No pancake is so flat that it doesnt have two sides"
---------------------------------------------
-
December 4th, 2003, 02:27 AM
#7
ofcouse, use PHP is better way (I told it), but use cookies is no so good...
On PHP can do it (if Your url is http//Yourdomain.com/YourPage.phtml?YourVal=Value):
if ($YourVal != "")
{
echo $YourVal;
}
In Your example can do so (file:///C:/Documents%20and%20Settings/Desktop/page2.html?myParam=tyiti):
if ($myParam == "tyiti")
{
//instructions
}
at Your service always,
professorX
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|