473,756 Members | 3,686 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4348
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.c om>
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.p hp">
<!-- 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.query string('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.p hp">
<!-- 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
8535
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 unique session ID in a cookie and referencing the SSN from the Session ID would be the correct way to do this. But since we have two separate servers, IIS and Websphere, how do we coordinate the session ID?
1
3617
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: ----------------------------------------------------------------------- <script language="JavaScript"> function addProcess(addPName,addSProcess,addPIndex) { var addProcessWindow = window.open('second.asp','mywindow','width=400,height=200');
5
6700
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 & "<br>"%> Exp <%'Response.Write GrantID & "<br>"%>
4
1961
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, but we can't seem to find a good and clean solution anywhere. The options we looked into are as follows. Comments following the options are why we did not want to go with them:
3
1571
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 page needs to reference. Thanks Lee
2
380
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 session variables? Is there not a way to create properties in the one screen and then pass some sort of reference to the screen you are calling? Can you point me to an example or an article on how to use? Thanks in advance for your...
7
2789
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 variables, and can do so just fine with a URL, and $_GET. What I would like to learn, and be very adept at using is the Form functions and how you pass through that. The problem in my comprehending this, is how does the original page know how...
28
3128
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 program. is this a valid concern? i'm thinking i can check the submitting page setting up something around the following the following code... $base_name = basename($_SERVER);
6
2197
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 some scripts that run at the server for the form so I can't disable that statement. I followed Microsoft's instructions(I know..not the best thing to do) but still can't get the variables to pass. I created a class and set up an @reference...
1
1243
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 the edit page and crashes instead of passing the variables to the final page. Here is the cmdSubmit code. Protected Sub cmdSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSubmit.Click Dim strShift = lblShift...
0
9456
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9843
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8713
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6534
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5142
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3805
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2666
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.