| Author |
Topic Search Topic Options
|
ctscott
Senior Member
Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
MadDog
Mod Builder Group
Joined: 01 January 2002
Status: Offline
Points: 3008
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
ub3rl337ch3ch
Senior Member
Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
|
Post Options
Thanks(0)
Quote Reply
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...  
Edited by ub3rl337ch3ch - 13 February 2006 at 10:23pm
|
 |
ctscott
Senior Member
Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
|
Post Options
Thanks(0)
Quote Reply
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
|
|
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
ctscott
Senior Member
Joined: 27 May 2003
Location: United States
Status: Offline
Points: 246
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 February 2006 at 8:46pm |
-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.
|
|
|
 |
ub3rl337ch3ch
Senior Member
Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
|
Post Options
Thanks(0)
Quote Reply
Posted: 19 February 2006 at 9:49pm |
|
so asp and php use different sessions?
|
 |
dpyers
Senior Member
Joined: 12 May 2003
Status: Offline
Points: 3937
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |