Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Passing variables from ASP to PHP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Passing variables from ASP to PHP

 Post Reply Post Reply Page  12>
Author
ctscott View Drop Down
Senior Member
Senior Member


Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctscott Quote  Post ReplyReply Direct Link To This Post Topic: Passing variables from ASP to PHP
    Posted: 11 February 2006 at 2:13pm
I have someone who's written his app. in PHP and wants to piggyback onto my site as we have complementing content.   We want to allow access to  registered members only (WWF) plus  I need to pass him Author ID and possibly Name for some logging purposes.  I don't want to give him access to the Author table.
 
On the permissions access part, I had planned on getting him to include a .asp module that would check for being logged in, thinking that the server would run the ASP on the include.  This thread, http://forums.webwiz.net/forum_posts.asp?TID=16187 , indicates I can't mix and match ASP/PHP, tho I'll have to give it a try and see.  Has anyone tried this?
 
On the variable passing part,  I don't want to use cookies and there won't be a form, just a link, and don't really want to use the querystring but at the moment it seems to be the option of choice.  Does anyone know of another way to pass the Author info.  to the PHP app that's not visible to the nekid eye?
 
Thanks.
______________________
College Football Trivia
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3008
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 11 February 2006 at 7:42pm
You can not mix ASP and PHP code.

The only way to pass variables would be to put them in a Cookie, Session, or QueryString.
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2006 at 10:18pm
couldn't you use a posted field too? not just one that sends to querystring?
 
anyway, you could have a hidden form (display:none) and put all the necessary data in there with .asp, then use an onclick event with the 'link' to post the form... obviously the form would have the 'action' of wherever the link is supposed to go... then just harvest the posted data with php on the other end...
 
or you could just rewrite ur friend's app... LOLWink


Edited by ub3rl337ch3ch - 13 February 2006 at 10:23pm
Back to Top
ctscott View Drop Down
Senior Member
Senior Member


Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctscott Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2006 at 4:05pm
i've about ruled out Session as an option as i've haven't figured out a way for the two to talk using Session variables.  looks like i'm down to querystrings and cookies.

Edited by ctscott - 17 February 2006 at 4:06pm
______________________
College Football Trivia
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2006 at 4:16pm
If you are using querystring, cookies, HTML form (even post), then you should be very careful of security as all these methods can be altered quite easily by a hacker.
Back to Top
ctscott View Drop Down
Senior Member
Senior Member


Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
Post Options Post Options   Thanks (0) Thanks(0)   Quote ctscott Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2006 at 8:46pm
Originally posted by -boRg- -boRg- wrote:

If you are using querystring, cookies, HTML form (even post), then you should be very careful of security as all these methods can be altered quite easily by a hacker.
 
agreed, but  unfortunately it looks like i'm running out of options. 
 
i may can come up with some compatible FSO type function or something or possibly passing the author_id via a querystring to a php script via a blured form with javascript.... still experimenting.
 
feels like i'm the only one on the planet determined to do this.
______________________
College Football Trivia
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 19 February 2006 at 9:49pm
so asp and php use different sessions?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 February 2006 at 12:05am
Asp and php can use the same session, they just use different interpreters.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.