473,397 Members | 1,974 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,397 software developers and data experts.

php vars to flash nightmare

Hello,

I realy need help,Searched the NG for a days with no vail.
Sorry for the long script.
I am trying to get a variable from php to flash. I have the following
code in php

<a href="artist_page.php?12345678=<?php echo
$row_rs_Q_Gender_to_Artist['Artist_ID']; ?>"><?php echo
$row_rs_Q_Gender_to_Artist['ArtistName']; ?></a>

This works fine getting the results from mysql, it like this on the
browser: artist_page.php?12345678=id number quried from dbase

Now, I have a flash in the same page that looks like this

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="340" height="350">
<param name="movie"
value="myflash.swf?artist_page.php?12345678=<?php echo
$row_Recordset1['ArtistID']; ?>">
<param name="quality" value="high">
<embed src="myflash.swf?artist_page.php?12345678=<?php
echo $row_Recordset1['ArtistID']; ?>" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="340"
height="350"></embed></object>
flash button like this

on (release) {

getURL("http://win2000/echoben/artist_page.php?12345678="+$row_Recordset1['ArtistID']);

The results I get on the browser when I click the flash button
would not get the id number quried from dbase mysql.
I have tried Loadvarsnum
("http://win2000/echoben/artist_page.php?12345678="+$row_Recordset1['ArtistID',0,
"post"]); and get and bunch of ways I foung searching the internet and
NG but none works

Please shed some light and end my nightmare
your help is very much appreciated

DBen

Jul 17 '05 #1
1 2285
Note: I don't know Flash, so take my comments with a grain of salt.
In article <11**********************@f14g2000cwb.googlegroups .com>, Drisco wrote:
Hello,

I realy need help,Searched the NG for a days with no vail.
Sorry for the long script.
I am trying to get a variable from php to flash. I have the following
code in php

<a href="artist_page.php?12345678=<?php echo
$row_rs_Q_Gender_to_Artist['Artist_ID']; ?>"><?php echo
$row_rs_Q_Gender_to_Artist['ArtistName']; ?></a>

This works fine getting the results from mysql, it like this on the
browser: artist_page.php?12345678=id number quried from dbase

I trust 12345678 is not actually your variable name?
Now, I have a flash in the same page that looks like this

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="340" height="350">
<param name="movie"
value="myflash.swf?artist_page.php?12345678=<?php echo
$row_Recordset1['ArtistID']; ?>">


A few things here:

1- Like I said, I don't know Flash, but it seems odd that a tag like 'param'
would allow a URL as a possible value of the 'value' attribute. If it doesn't
expect a URL as a value, it's not going to go to that page at all.

2- Even if it does, I don't think
'myflash.swf?artist_page.php?12345678=anything' is a valid URL.

3- Does artist_page.php output some string that you're using as the query
string for myflash.swf? If so, could you make the code in artist_page.php into
a function and do something like this:

(in artist_page.php:)

<?php
function artist_page($12345678){

// code from artist_page.php, collecting output in $query_string;

return $query_string;
}
?>

(in your main page:)

<?php

include "artist_page.php";

$query_string = artist_page($row_rs_Q_Gender_to_Artist['Artist_ID']);

?>

and then your links to myflash.swf would be:
"myflash.swf?<?php echo $query_string; ?>"
That's the best I can give you with no knowledge of Flash.

-Reha
--
/(bb|[^b]{2})/ ...THAT is the question.
=======================================
http://www.stwing.org/~rsterbin
Jul 17 '05 #2

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

Similar topics

30
by: Darren Gates | last post by:
hi PHP users, Here's a Flash 7 version of phpMyAdmin: http://www.tufat.com/phpflashmyadmin.php Special features include: drag-and-drop interface for InnoDB table relationships, quick record...
0
by: Drisco | last post by:
Hello, I realy need help,Searched the NG for a days with no vail. Sorry for the long script. I am trying to get a variable from php to flash. I have the following code in php <a...
5
by: Trapulo | last post by:
Hi, I've a big trouble with an asp.net page. Basically, the page has an swf that starts and downloads some data from an other asp.net page. The application works well on my testing IIS 6, but...
10
by: John A Grandy | last post by:
Say I have Class1 which contains static Class2 var1 = new Class2(); Is Class2 constructor code only executed if var1 is referenced in the code-execution path ? Or is Class2 constructor code...
3
by: jitu78 | last post by:
Hi, I want to pass some variable into flash on runtime. See this link, http://www.globtier.com/portfolio/in...?cat=webdesign If somebody clicks on any of project there, it should be...
8
by: Binx | last post by:
Please help! Does anyone know how to set up radio buttons to send their info from flash to a PHP script that will email me the results? I have been trying to get this thing to work for weeks, and...
2
by: Head In A Pan | last post by:
Hello! Here is something I assume is relatively simple but have never bothered to find out - I'm not finding the answer anywhere! All I am trying to do is this: Have a thumbnail image...
1
by: Ronm | last post by:
Hey Guys, I have a problem which has been driving me crazy for the last days. I'm working on a small project involving: Visual Basic Acces Database ASP and adobe/macromedia Flash,
6
anfetienne
by: anfetienne | last post by:
how can i post my $random_digit var to flash so that it can be used within flash actionscript?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.