Current location: Hot Scripts Forums » Programming Languages » PHP » How can I go about doing this?


How can I go about doing this?

Reply
  #1 (permalink)  
Old 10-18-03, 04:06 AM
blockspace blockspace is offline
New Member
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb How can I go about doing this?

Hi Everyone

I have a Flash object that gets values out of a webpage to find places on a map for a Real Estater website. What I need to be able to do is have a page (property1.htm) with a link, click here to find on map, but the hyperlink will be done in such a way I can input the values such as coordinates in there, then when they click on the hyperlink (eg. map.php?x=45&y=300&zoom=45), it opens up the map page, and parses those values into the document...

eg. x = 45
y = 300
zoom = 45

Does anyone know what Im trying to say, or point me in the right direction as to where I can find a script that will do this...

Thankyou
Regards
Luke
Reply With Quote
  #2 (permalink)  
Old 10-18-03, 11:35 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
I am not that good in flash , or should I say I only know motion tween in flash .. but you can pass the coordinates to a php file which will take these values ..
something like this would work :
PHP Code:

$x=is_numric($_GET['x']);

$y=is_numric($_GET['y']);
$zoom=is_numric($_GET['zoom']);
//REST OF SCRIPT HERE .. 
and the hyperlink should be just like you wrote ..
but notice that in this link :
(map.php?x=45&y=300&zoom=45)
you have to use the exact variables case (x not X )
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Reply With Quote
  #3 (permalink)  
Old 10-18-03, 12:02 PM
blockspace blockspace is offline
New Member
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Hey thanks for your reply

Im actually using LVME from Lorissoft.com, which is why I need to be able to do this. I just solved the problem by using the echo function to get the variables from the URL and put them into the page somewhere and this works great. Thanks again...

Luke
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 07:11 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.