473,609 Members | 1,972 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_pa ge.php?12345678 =<?php echo
$row_rs_Q_Gende r_to_Artist['Artist_ID']; ?>"><?php echo
$row_rs_Q_Gende r_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.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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.sw f?artist_page.p hp?12345678=<?p hp
echo $row_Recordset1['ArtistID']; ?>" quality="high"
pluginspage="ht tp://www.macromedia. com/go/getflashplayer"
type="applicati on/x-shockwave-flash" width="340"
height="350"></embed></object>
flash button like this

on (release) {

getURL("http://win2000/echoben/artist_page.php ?12345678="+$ro w_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="+$ro w_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 2295
Note: I don't know Flash, so take my comments with a grain of salt.
In article <11************ **********@f14g 2000cwb.googleg roups.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_pa ge.php?12345678 =<?php echo
$row_rs_Q_Gende r_to_Artist['Artist_ID']; ?>"><?php echo
$row_rs_Q_Gende r_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.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=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?ar tist_page.php?1 2345678=anythin g' 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($12 345678){

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

return $query_string;
}
?>

(in your main page:)

<?php

include "artist_page.ph p";

$query_string = artist_page($ro w_rs_Q_Gender_t o_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
3706
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 editing, tree-menu display for databases and tables, support for multiple hosts, and much more...
0
1410
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 href="artist_page.php?12345678=<?php echo $row_rs_Q_Gender_to_Artist; ?>"><?php echo $row_rs_Q_Gender_to_Artist; ?></a>
5
1597
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 when I upload it on production server (an other IIS6), it cannot download anything. The application is in ASP.NET 2.0. The page with swf, the swf, and the page that renders data (as xml) are on the same domain and same web site. The site has form...
10
1751
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 executed on load of any class that references Class1 ?
3
3036
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 highlighted in left flash navigation. Anyone know there, how can I do this?
8
11026
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 I still can not get it to work right. Right now, I have a survey that looks like this, and it sends the input text just fine, but when I get the email, all the radio button info is not there. I can provide files or code if it helps. I really...
2
1812
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 acting as a button - sitting on my HTML page. When the user clicks it, the button uses the POST method to send a specified variable.
1
2062
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
1564
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
8145
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
8095
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
8236
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
8410
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7030
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
5526
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
4037
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...
0
4103
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1407
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.