473,326 Members | 2,168 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Passing variables from a PHP page to an ASP page?

Here's a question for you:
I have a site using a PHP CMS and I need it to use an ASP module from
another site but I would like to use a frame so it looks like it is
still in the same site.
I need to pass a username variable from a form in in the PHP webspace
(where the domain is pointing) to a page in an ASP webspace (using a
subdomain not related to the main domain).
I created a frame page in the php hosting with a 1px top frame and the
main frame pointing to the asp page but of course the variable is not
being passed.....if I put the ASP connection code on the frameset page
it doesn't recognize it because the hosting is a Unix/PHP hosting
only.
My question to you is:
Can a variable be passed from the php to the ASP webspace using some
other technique?
I just need to have the ASP module showing as if it is in the PHP.....

Thanks,

FayeC
Dec 7 '05 #1
6 4321
How about using cUrl to fetch the page and then display it...

Here's a question for you:
I have a site using a PHP CMS and I need it to use an ASP module from
another site but I would like to use a frame so it looks like it is
still in the same site.
I need to pass a username variable from a form in in the PHP webspace
(where the domain is pointing) to a page in an ASP webspace (using a
subdomain not related to the main domain).
I created a frame page in the php hosting with a 1px top frame and the
main frame pointing to the asp page but of course the variable is not
being passed.....if I put the ASP connection code on the frameset page
it doesn't recognize it because the hosting is a Unix/PHP hosting
only.
My question to you is:
Can a variable be passed from the php to the ASP webspace using some
other technique?
I just need to have the ASP module showing as if it is in the PHP.....

Thanks,

FayeC

Dec 7 '05 #2
Hmmmmmm.....I have no clue on how to do that but that's a tip.....off
to get googling....
Any more info??

FayeC

On Tue, 06 Dec 2005 21:14:21 -0600, Mike Willbanks <pe****@gmail.com>
wrote:
How about using cUrl to fetch the page and then display it...

Here's a question for you:
I have a site using a PHP CMS and I need it to use an ASP module from
another site but I would like to use a frame so it looks like it is
still in the same site.
I need to pass a username variable from a form in in the PHP webspace
(where the domain is pointing) to a page in an ASP webspace (using a
subdomain not related to the main domain).
I created a frame page in the php hosting with a 1px top frame and the
main frame pointing to the asp page but of course the variable is not
being passed.....if I put the ASP connection code on the frameset page
it doesn't recognize it because the hosting is a Unix/PHP hosting
only.
My question to you is:
Can a variable be passed from the php to the ASP webspace using some
other technique?
I just need to have the ASP module showing as if it is in the PHP.....

Thanks,

FayeC

Dec 7 '05 #3
NC
FayeC wrote:

I have a site using a PHP CMS and I need it to use an ASP module
from another site but I would like to use a frame so it looks like it is
still in the same site.
I need to pass a username variable from a form in in the PHP webspace
(where the domain is pointing) to a page in an ASP webspace (using a
subdomain not related to the main domain).


There's one missing piece in your description of the problem. Will the
ASP page accept a GET variable or does it have to be POST?

In the first case, everything can be done rather simply; you put out a
frameset that looks something like this:

<FRAMESET rows="1, *">

<FRAME name="top" src="myscript.php">
<!-- This is a PHP script on your site -->

<FRAME name="bottom"
src="http://othersite.com/otherscript.asp?user=FayeC">
<!-- This is a link to an ASP script on the other site -->

</FRAMESET>

The second case is mucn more complicated...

Cheers,
NC

Dec 7 '05 #4
you can pass variables by using query string
http://othersite.com/otherscript.asp?user=FayeC to asp page and then
over then you can retrieve it by either:
u=request('user')
or
u=request.querystring('user')

Dec 7 '05 #5
Nope....it has to be POST. The variable is coming from a form on an
html page hosted on a UNIX/PHP server and is linking to a page on the
ASP hosting space.
I just wanted to make it look seamless by cloaking the second
subdomain.
I am not that experienced in PHP to smack a cURL script....I was
reading on it and I found out that the PHP hosting does support it.

FayeC

On 7 Dec 2005 00:15:02 -0800, "NC" <nc@iname.com> wrote:
FayeC wrote:

I have a site using a PHP CMS and I need it to use an ASP module
from another site but I would like to use a frame so it looks like it is
still in the same site.
I need to pass a username variable from a form in in the PHP webspace
(where the domain is pointing) to a page in an ASP webspace (using a
subdomain not related to the main domain).


There's one missing piece in your description of the problem. Will the
ASP page accept a GET variable or does it have to be POST?

In the first case, everything can be done rather simply; you put out a
frameset that looks something like this:

<FRAMESET rows="1, *">

<FRAME name="top" src="myscript.php">
<!-- This is a PHP script on your site -->

<FRAME name="bottom"
src="http://othersite.com/otherscript.asp?user=FayeC">
<!-- This is a link to an ASP script on the other site -->

</FRAMESET>

The second case is mucn more complicated...

Cheers,
NC

Dec 8 '05 #6
FayeC wrote:
Nope....it has to be POST. The variable is coming from a form on an
html page hosted on a UNIX/PHP server and is linking to a page on the
ASP hosting space.
I just wanted to make it look seamless by cloaking the second
subdomain.
I am not that experienced in PHP to smack a cURL script....I was
reading on it and I found out that the PHP hosting does support it.


What is being hosted on what system is really beside the point.

A frame is no different from any other page - you can only communicate
to it via HTTP/HTML. If the frame content is to be specified by a link
it will be retrieved by GET so you can use CGI arguments, but there's no
way of giving it POST data. But there's nothing to stop you using a form
to specify the frame, if this fits your user interaction model. Just
give a TARGET parameter to the FORM statement as well as the ACTION and
METHOD parameters.

Of course what I said above isn't quite true any more, since the
invention of cookies. Cookies are client side, so it's perfectly
possible for your calling script to weasel away any information in
cookies in the browser, and the called script in the frame to read them.
But I get the impression that your ASP script is a given, in which case
the FORM method above is the only way I can think of.

Colin
Dec 8 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a...
1
by: Consuelo Guenther | last post by:
Hello, I am having problems with passing variables between pages. I have the following: First asp page has the function: -----------------------------------------------------------------------...
5
by: Jack | last post by:
Hi, I need to pass multple variables in a link in order to go to a asp page with the two varables. The following are the values of the variables using response.write: <%'Response.Write Mypage...
4
by: Doruk | last post by:
The problem that we are experiencing is simple: We want to pass certain parameters from a page with several server controls to another page. We want to do this in a dotnet compliant manner,...
3
by: Lee | last post by:
Hi All How can I pass options from one webpage into another webpage. When the user clicks on the hyperlink I want them to be go to the next page but I need to pass in a number that the next...
2
by: Jim Heavey | last post by:
I know that I can create session variables and pass those values from one screen to another, but is there not a way to makes variables from one scree n available to another screen other then...
7
by: Khai | last post by:
First off, yes, I understand the crapload of tutorials out there, (well, rather, I understand there /are/ a crapload of tutorials out there), the problem is my comprehension. I'm trying to pass...
28
by: Skeets | last post by:
i'm passing session and hidden variables between pages. not to mention post values. i'm a little concerned that someone with sufficient knowledge could spoof these vlaues and manipulate the...
6
BezerkRogue
by: BezerkRogue | last post by:
This is the most fundamental action I am sure, but I can't seem to make it happen. I am familiar with passing variables in ASP. But that doesn't seem to be the preferred method in .NET. I have...
1
BezerkRogue
by: BezerkRogue | last post by:
I have created a page that passes a variables from the start page to a results page that allows operators to edit the data. When I click the submit button, it reruns the page load instruction from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.