[Exclusive] Create AS3 and MXML in your PHP pages - Q and A
One of the most common PHP scripts is a form. Before FTML, there has never been a method of truely integrating Flash with PHP. Flash and PHP have always been seperate sandboxes when developing. FTML now allows you to write PHP and FTML hand in hand on the same page. This removes the requirement of additional files or web services for PHP to interact with Flash.
PHP to Flash: http://reshapemedia.com/ftml/learn/php-to-ftml/
FTML Getting Started Guide: http://reshapemedia.com/ftml/downloads/getting-started-guide/
PHP Requirements
None - simply code as you would normally and include the MXML components rather than HTML.
Form Requirements
All Form children must have the [name] property set
Any UI For child with the [id] property set will be processed with the Form
Forms should have [relativeChildSize] set to "true"
Forms support a [method] of "get", "post", "send", "refresh"
Inputs with a [type] of "text" or "password" support the [enter] key press
Example PHP File
Adobe will not let me post the example code so you can view the demo here: http://reshapemedia.com/examples/ftml-form.php
- Select [View Source] from your menu to see the code.
Message was edited by: ReshapeMedia
It's a little hard to understand your question and its context. Can you please upload this page and give us a link so we can see what you are describing?
Similar Messages
-
Cannot create editable region on php page
I was successful on the html page; to select the text and create editable region.
But when I select the same text on the php page; I get the error message: "Selection is outside the body tag. Select the text inside the body tag."
www.ndccalliance.org/resource.php
www.ndccalliance.org/resource.html
What am I doing wrong?
Thank you.Hello JudyEllis,
Take a look at the output source code for your PHP page when viewed in the browser. You actually have multiple nested opening and closing HTML and body tags in your page. It appears maybe you're using includes, for instance with your header and footer, but your include files are entire HTML documents, not just the chunks of code you need.
Best regards,
Corey -
Loading and external php page without reloading
Hi to all,i want to load(include) php pages without reloading
the whole page?how to accomplish that in Spry?Also can we include
php pages also through the HTML PANEL in spry?forexample, i have a
link which i click it should fetch dreamweaver recordset values in
php without reloading the whole page.Is there any XML involved or
it can be done merely through HTML Panel in Spry.Kindly help me in
this regard.You can include a whole page (or part of a page) with the
HTML Panel widget. No XML is needed for this.See the following
page
for HTML Panel examples and just replace the static pages by your
php pages. -
conclusion from godaddy:
Search engines are not pulling up your other pages on your website because it is created with javascript.
the content on the pages, (photo gallery, My Recipes/Blog, History, Friends) need to be formatted to HTML, PHP or CSS. No search engines (google, Yahoo, Bing) can crawl//analyze webpages built with javascript.
See if Apple allows iweb to create the pages in HTML format and ask how to make those changes.
I spend more then 1 hour on the phone with them but we didn't find the solution...
please i need help because like this nobody can rich my website...
www.chefdiego.com
thank youThe part of iWeb pages that give the search engines problem is the navbar. That's javascript based. One way to get around that is to create another blank page in the site that's not included in the navbar.
Add a text based navbar in that page with just the other pages in the site.
Also you can use that page for creating the sitemap for Google at Create your Google Sitemap Online - XML Sitemaps Generator.
Have you let Google know your site exists? This website describes how to get it recognized: Get your iWeb website found in search engines like Google Yahoo MSN and Bing.
OT -
if you use iTunes match in order to create space and remove music from your hard drive, does that happen automatically when you subscribe and upload your music or is there another step to remove the music from your hard drive once you've uploaded to iTunes match?
Welcome to the Apple Community.
iTunes match won't automatically remove content from your computer, if you want to do that you will need to do it manually yourself. -
I am being forced to create 3 security question from your dropdown list and I can choose the questions but can't enter anything in the answer field??
The problem is twenty three people leaving or twenty three thousand leaving has zero impact on a carrier with over 100 million customers. And they have the lowest churn rate. So if 10,000 or 20,000 or more churn out it means little to the carrier.
If you have a real lawyer he/she will advise you that you have no case. The device was not lost or stolen by the carrier, you were not eligible for a new device, and like any business who employs large numbers of poorly trained personnel who make low wages what was told to you is not in writing. So a verbal exchange does not hold up.
In fact in Verizon's customer agreement it has such a disclaimer against any verbal exchanges so if you have that agreement in writing, go get them.
The posting on public forums and places like Face Book, Linkin, Google+ or a personal web site can open you up to a lawsuit for Dilution of Trade Name, and other offences. However if you have proof then go for it.
Unfortunately that is how big business works today. A pity -
Flash as3.0 screen shot with php
hello, i'm so close to actually getting this to work and i'm
breaking down and asking for some help. here is my actionscript and
php codes, why doesn't this work?
the link for a preview and the error:
Link
hereI think the JPEGEncoder class originally came from the other
source (I'm not 100% sure but the code is basically identical -
there are comments to the effect that a few tweaks have been made).
No issue with that though.
What the bytearray implementation does is implement the
uploading/saving support .
The implementation at bytearray was done using amfphp (flash
remoting with php) with amf3 encoding format.
I presumed you were trying to avoid using amfphp remoting and
just transfer the jpeg data in a binary format in your POST method
upload. I presume that might work given that you can do binary
transfers using as3... although I've never tried it.
But the issue earlier appeared to be that your php script
wasn't accessible which is (I believe) an issue unrelated to any of
the code and something to do with how your server is set up. (I
didn't delve too much into the code yet, because I can't see how it
can work at all unless this is addressed first).
Do you have PHP set up on your server? I assumed earlier that
you had and that there was some other problem. If you don't have
php set up then no php code will run. If you do have it set up then
the problem is (I believe) something to do with how things are set
up on your server (as long as the create.php file is in the same
directory as the html).
Coldfusion has (or used to have when I used it some years
back) flash remoting support built in.
But I guess if you can send the jpeg binary data directly via
POST you don't need remoting.
If I get time over the weekend I'll see if I can get it
working the way you're trying to do it. (My first inclination would
be to try to use amfphp and just replicate the bytearray example,
but I'm also interested to see if it can work your way). Unless
someone beats me to it. ;)
GWD -
Having a hard time with permissions to create dir and files in www
Having a hard time getting permissions to create directories and files in www folder:
I followed the following guide here: https://www.digitalocean.com/community/ … arch-linux and here: https://www.digitalocean.com/community/ … arch-linux
So now I have a LEMP stack which runs fine and I have my root account secured and a new username "adriano". If I SFTP into the server using the username adriano, I am unable to create any files or directories. Trying to do a simple wordpress install doesn't work because I need to be able to create a folder for it, and a wp-config.php file. Both of which, like I mentioned, I do not have permissions to do. Yes, the username "adriano" has been added to the sudoers file via visudo.
I've never been very good at UNIX permissions so I was wondering if maybe someone can help me out?
Also, since I am using nginx it does not seem like I have a www-data group or user and my www folder is /usr/share/nginx/
Thank you,
AJNo, no, you guys misunderstand me. I am not that much of an oblivious person. 95% of the time I understand EXACTLY what the code that I am copying and pasting does. And when I don't, I look into it further before executing said commands. I just tend to not remember commands so I google them, see examples, and then copy and paste them to avoid the busy work of typing out long strings. For example, it took me like 6 months to remember that to untar a .tar.gz file it was -xvfz.
But I digress. drcouzelis, I do have root access. It's my own VPS. However, I have always used shared hosting through different hosting providers and now that I got a VPS and have to do everything myself, I am a little bit lost.
I followed what wonderwoofy said and created a www-data group, added the adriano user to said group, and changed the owner of my http server root to www-data, and I SFTPed into the server again with filezilla and it still works perfectly. However, those "hordes of hackers" drcouzelis warned me about does not sound pleasant so I am really really really hoping one of you guys can tell me the next steps. Root login is disabled in the /etc/ssh/sshd_config file, and I also changed the port to a random port I created. My web files are all served from /usr/share/nginx/ (there are different folders in there that correspond to different domains.) Now what I am wondering is that if user "adriano" is in the sudoers file as ALL=(ALL) ALL, doesn't that pretty make adriano the same as the root user? The reason why I am so worried about this is because I heard/read countless times that working through the root user is BADDDDDDDDDD and will bring evil and shame upon your life (not in those exact words) and that you should never work with it. Also, do I have to worry about anything dealing with groups and/or users and/or permissions when it comes to PHP? I have php-fpm installed.
I am willing to buy anyone who can help me out with this a beer or two and I will be forever in your debt.
Thank you,
AJ
Last edited by AJCR (2013-05-23 02:52:03) -
Create complex site with no HTML/PHP knowledge {subject edited by moderator}
I have zero knowledge about web design, i want to create a website that would feature thousands of users creating accounts and writing articles, and for that i think i need to create it using php language, my question is how can i learn it, both the basics,language and how to do it step by step on DW?
Contact Facebook and ask their team of web developers how they do it. Seriously, this is no project for a rank beginner. Without advanced coding skills and a very good grasp of web server security, you are in over your head. DW is a tool. It's only as good as the person using it.
HTML, CSS & Web Design Theory Tutorials -
http://www.html.net/
http://w3schools.com/
http://www.csstutorial.net/
http://phrogz.net/css/HowToDevelopWithCSS.html
http://webdesign.tutsplus.com/sessions/web-design-theory/
Creating your first web site in DW CC:
http://www.adobe.com/devnet/dreamweaver/articles/CS6/first_website_pt1.html
PHP Tutorials:
http://www.html.net/tutorials/php/
PHP Net
www.php.net/
Nancy O. -
Create price range search function in php recordset
Hi,
On a continuation from a previous thread, I am finding that the expertise of the web designers on these forums is proving much more educational and beneficial than the vast numbers of books I have bought to setup a website for my property company. (Without sounding too sycophantic!).
I have managed to create a working website where the properties in my database and their related images are pulled into a recordset on the live webpage and everything is working perfectly. I do however want to add some simple filters on the search page to narrow down the results from the database.
I am finding that given one push or piece of coding I can work out the rest myself. Therefore, all I would like to do is create a price range drop down, where clients can select properties from the database in one of 3 categories: under £1m, £1m-£2m, and over £2m.
As I understand it, I need two pages to do this, one html form page where the clients will input their search criteria with coding similar to:
<form action="search_results.php" method="post" name="search" id="search" >
Price Range:
<select name="prop_price" id="select8">
<option value="<1000000"> >£1,000,000 </option>
<option value="1000000-2000000"> £1,000,000 - £2,000,000</option>
<option value=">2000000"> >£2,000,000 </option>
</select>
<input name="search" type="submit" id="search" value="search">
</form>
(apologies for my messy coding - I am still new and not sure if certain fields arent required yet!).
Then, I would need to create the search_results.php page which would give the results of properties in the database depending on the price range submitted. I have tried various different methods put online through the forums, but cannot seem to get anything post 2006, nor anything that has actually worked. I am using Dreamweaver CS5 and MySQL for my db.
How do I incorporate the above search criteria into a dynamic php doc? The only way I have managed to get something working is to create a new page for each of the price variables -something which is incredibly inefficient, and hardly something that can be developed easily going forward.
The php code I currently have that is retrieving all the properties from my database is as follows (connection name is test, recordset name is getDetails):
<?php require_once('Connections/test.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$maxRows_getDetails = 20;
$pageNum_getDetails = 0;
if (isset($_GET['pageNum_getDetails'])) {
$pageNum_getDetails = $_GET['pageNum_getDetails'];
$startRow_getDetails = $pageNum_getDetails * $maxRows_getDetails;
mysql_select_db($database_test, $test);
$query_getDetails = "SELECT id, prop_name, prop_price, country, post_code, short_desc, image FROM images order by prop_price DESC";
$query_limit_getDetails = sprintf("%s LIMIT %d, %d", $query_getDetails, $startRow_getDetails, $maxRows_getDetails);
$getDetails = mysql_query($query_limit_getDetails, $test) or die(mysql_error());
$row_getDetails = mysql_fetch_assoc($getDetails);
if (isset($_GET['totalRows_getDetails'])) {
$totalRows_getDetails = $_GET['totalRows_getDetails'];
} else {
$all_getDetails = mysql_query($query_getDetails);
$totalRows_getDetails = mysql_num_rows($all_getDetails);
$totalPages_getDetails = ceil($totalRows_getDetails/$maxRows_getDetails)-1;
?>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
</tr>
<?php do { ?>
<tr>
<td><img src="show_image.php?id=<?php echo $row_getDetails['id']; ?>"></td>
<td><?php echo $row_getDetails['prop_name']; ?></td>
<td><?php echo $row_getDetails['prop_price']; ?></td>
<td><?php echo $row_getDetails['short_desc']; ?></td>
</tr>
<?php } while ($row_getDetails = mysql_fetch_assoc($getDetails)); ?>
</table>
<?php
mysql_free_result($getDetails);
?>
Essentially, I need to incorporate the WHERE function into my sql query, but how do I do this so that it is dependent on the clients submission on the search page.......?
Sorry if this is incredibly easy, but I am at a complete loss now and cant try any more techniques from the various forums out there! I even downloaded the entire Zen cart framework just to see if I could find something in the vast numbers of php pages that came with it!
Hope someone can help -
Thanks
JackHi Gunter,
Thanks for your quick response. I thought I had it but not quite yet. I uploaded these pages into live browser but am only getting the following on the search results page:
This is the case for all three parameters. As I have not yet uploaded all the properties into mysql, there are only 2 live ones in there, one is prop_price at 600,000 (int) and the other prop_price 2300000 (int). For the query to work, should this field in mysql be a different format?
For your reference, the new show_results.php code is:
<?php require_once('Connections/test.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$maxRows_getDetails = 20;
$pageNum_getDetails = 0;
if (isset($_GET['pageNum_getDetails'])) {
$pageNum_getDetails = $_GET['pageNum_getDetails'];
$startRow_getDetails = $pageNum_getDetails * $maxRows_getDetails;
if(isset($_POST['prop_price']))
switch($_POST['prop_price'])
case ("a"):
$price_whereclause = ' WHERE prop_price < 1000000 ';
break;
case ("b"):
$price_whereclause = ' WHERE prop_price BETWEEN 100000 AND 200000 ';
break;
case ("c"):
$price_whereclause = ' WHERE prop_price < 2000000 ';
break;
else {
$price_whereclause = '';
mysql_select_db($database_test, $test);
$query_getDetails = "SELECT id, prop_name, prop_price, country, post_code, short_desc, image FROM images ".$price_whereclause." order by prop_price DESC";
$query_limit_getDetails = sprintf("%s LIMIT %d, %d", $query_getDetails, $startRow_getDetails, $maxRows_getDetails);
$getDetails = mysql_query($query_limit_getDetails, $test) or die(mysql_error());
$row_getDetails = mysql_fetch_assoc($getDetails);
if (isset($_GET['totalRows_getDetails'])) {
$totalRows_getDetails = $_GET['totalRows_getDetails'];
} else {
$all_getDetails = mysql_query($query_getDetails);
$totalRows_getDetails = mysql_num_rows($all_getDetails);
$totalPages_getDetails = ceil($totalRows_getDetails/$maxRows_getDetails)-1;
?>
<table width="990" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
</tr>
<?php do { ?>
<tr>
<td><img src="show_image.php?id=<?php echo $row_getDetails['id']; ?>"></td>
<td><?php echo $row_getDetails['prop_name']; ?></td>
<td><?php echo $row_getDetails['prop_price']; ?></td>
<td><?php echo $row_getDetails['short_desc']; ?></td>
</tr>
<?php } while ($row_getDetails = mysql_fetch_assoc($getDetails)); ?>
</table>
<?php
mysql_free_result($getDetails);
?>
I know its very cheeky, but assuming you can help with fixing this, where in the coding would I insert a "No properties returned. Please try another query" response should the db not have anything in the set parameters (instead of the symbol currently being displayed).
Again thanks so much for all your help.
Jack -
Hi
I have no idea where to post this, so pls forgive me if im in the wrong place, but I have an Assessment due tomorrow, I'm only 4 weeks knew to AS3 and Flash, and confused as, so pls forgive me if i also look silly asking this question.
The issue is loading data from an XML file and having it present in a Flash website. Its a book review thing (i've altered the XML and AS3 for posting here so please bare that in mind), so the XML looks a little like this
<books>
<book>
<bookName>The Monsters</bookName>
<genres>
<genre>Thriller</genre>
<genre>Crime</genre>
<genre>Comedy</genre>
</genres>
<description>about the mummies.</description>
<image>mummies.jpg</image>
<reviews>
<review>
<date>16/07/2011</date>
<name>unnamed</name>
<info>
<rating>5</rating>
<why>blah blah</why>
<theGood>it was good...</theGood>
<the Bad>it was bad…</theBad>
</info>
</review>
</reviews>
</book>
<books>
but each Book has multiple reviews, i've just shown you one. Anyway, i need to present this information in 3 dynamic text fields when a book is selected in my ComboBox… after a lot of trouble i got the basics of it. So in the Genre box the genres will display, and in the Description box the description will display, and in the Review box i can get all the information, but only with all the tags. I need it to display without any tags, it would be wonderful if i could figure out how i could put date, name etc in front of that information as well, but I cant even begin to figure that one out. For the life of me i cannot figure it out. below is the code I have so far:
//Load XML
var booksXML:XML = new XML();
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest("gigGuide.xml");
loader.addEventListener(Event.COMPLETE,loaderOnComplete);
loader.load(request);
function loaderOnComplete(event:Event):void
booksXML = new XML(event.target.data);
var books:Array = new Array({label:"Select a Book"});
for each (var book:XML in booksXML.band)
books.push({label:book.bookName.toString(), data:book.description.toXMLString(),
infoLocal:book.genres.genre.toString(), infoDate:book.reviews.review.toString(),
infoImage:book.image});
bandCB.dataProvider = new DataProvider(bands);
//ComboBox changeable
bookCB.addEventListener(Event.CHANGE, changeHandler2);
function changeHandler2(event:Event):void
genre_txt.text = ComboBox(event.target).selectedItem.infoLocal;
description_txt.text = ComboBox(event.target).selectedItem.data;
reviews_txt.text = ComboBox(event.target).selectedItem.infoDate;
empty_mc.tex = ComboBox(event.target).selectedItem.infoImage; //doesn't work
any help would be greatly appreciated, and the image doesn't work, i've already faced facts that im not going to get that one to work
Thank you in advanceFrom what I can see you have a few problems. In your loaderOnComplete you set the data provider with 'bands' but create a variable called 'books'.
Also, you want to be using the XMLList object to parse your data out. It's much simpler.
Have a look at the following:
var booksXML:XML;
function loaderOnComplete(e:Event):void
booksXML = new XML(e.target.data);
var books:XMLList = booksXML.book;
trace(books[0].bookName);
var bookReviews:XMLList = books[0].reviews.review;
trace(bookReviews[0].name);
trace(bookReviews[0].date);
First we get all the book xml objects in an XML List - the trace traces book number 0's name - The Monsters.
Next, you can get all the reviews for a book in another XML List. Here we use the first book - book[0] and trace out the review's name and date.
You can iterate through an XMLList as it has a length() method - (not a length property)
Also, loading an image for a book would be easy - you just grab the image property of the current book and then use a Loader to load it.
trace(books[0].image); -
AS3 and ability to handle dragout events
I'm making the switch to AS3 and am working on a new flash
game for work that will be written in AS3.
I'm adding the event handling to some buttons but am running
across some issues.
since the onDragOut event has been replaced with the generic
MOUSE_OUT event, how do you guys suggest handling instances where
the user presses a button, roll out of the button and doesn't
release the mouse, and then roll back over the button?
Here is the code I am using to create the event handling for
buttons:
btn_path.buttonMode = true;
rollOverHandler = function() {
btn_path.gotoAndStop('over');
rollOutHandler = function() {
btn_path.gotoAndStop('out');
mouseDownHandler = function() {
btn_path.gotoAndStop('down');
mouseUpHandler = function() {
btn_path.gotoAndStop('over');
btn_path.addEventListener(MouseEvent.MOUSE_OVER,rollOverHandler);
btn_path.addEventListener(MouseEvent.MOUSE_OUT,rollOutHandler);
btn_path.addEventListener(MouseEvent.MOUSE_DOWN,mouseDownHandler);
btn_path.addEventListener(MouseEvent.MOUSE_UP,mouseUpHandler);
Do you guys know of any other solution or workaround because
as the code currently is, if a user rolls out after pressing the
button (not releasing), when they roll back over, they go to the
over state instead of the down state.
I've tried adding flags to know when a button was pressed,
etc.; however that gets ugly and problematic.
I'd like to know how you guys implement your buttons events
and what you do for the events.
I'm currently using movieclips for my buttons.Either you use TVIEW or TIVEW2 there is a field called <b>CLICK</b> you can fill this with the event name. (e.g mynodeclick')
if you have this property filled in , after the tree is rendered you can click on the node which will generate server event which you can capture oninputprocessing.
DATA: event TYPE REF TO if_htmlb_data .
DATA: tree_event TYPE REF TO cl_htmlb_event_tree.
event = cl_htmlb_manager=>get_event( request ).
if event->event_name = htmlb_events=>tree.
CLEAR : tree_event .
tree_event ?= event.
MOVE: tree_event->node . " This is the current node clicked
endif .
Also check out the following weblog .
/people/durairaj.athavanraja/blog/2004/11/21/bsphow-to-build-performance-efficient-dynamic-htmlbtree
Regards
Raja -
Distinguish between pure AS3 and Flex project
Hey,
how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
Any help is much appreciated.
Best,
JoaMXML is converted to AS3 code as part of the compilation process, then the AS3 is compiled normally like the rest of the project. I don’t think that GFPE is run over anything but an AS3 tree. There
may be a way to figure out where the original source came from, e.g. .mxml or .as file, but you’d have to interactively debug and scan the data structures — I don’t know off hand.
- Jono
From: Joa Ebert <[email protected]>
Reply-To: <[email protected]>
Date: Mon, 31 Mar 2008 05:40:13 -0700
To: <[email protected]>
Subject: Distinguish between pure AS3 and Flex project
A new discussion was started by Joa Ebert in
Developers --
Distinguish between pure AS3 and Flex project
Hey,
how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
Any help is much appreciated.
Best,
Joa
View/reply at Distinguish between pure AS3 and Flex project
<http://www.adobeforums.com/webx?13@@.59b4da24>
Replies by email are OK.
Use the unsubscribe
<http://www.adobeforums.com/webx?280@@.59b4da24!folder=.3c060fa3> form to cancel your email subscription. -
Help needed with a Nav Bar and PHP page.
Hello, i'm designing a website
http://www.ahcagency.com for
wich i create a nav bar in FW and exported the html to DW and
inserted in a template so that way i update all the pages from the
template. Everything works fine, but i have a login page for a
secure area inside the same website and on the
http://www.ahcagency.com/login.php
page i have the problem. The nav bar has 7 buttons, if i insert the
first 3 buttons on the login.php page works very nice, but when i
insert all the 7 buttons the login.php does not work at all. Also i
insert the nav bar in all the php pages inside the secure area and
all works fine, the probles is only in the login page.
ANY ADVICE, I'M DOING SOMETHING WRONG?
Also when i create the buttons i gave them the four stages,
but only the 1st stage and the rollover work.
what i want is if i click on the services page, the services
button stay down while i'm on the services page.
ANY HELP HERE?Hi
I bought this Athlon 3000 xp on Ebay and the listing says
Manufacturing process 0.13 micron copper process
Package 453-pin organic PGA
1.95" x 1.95" (4.95 cm x 4.95 cm)
Socket Socket A (Socket 462)
Speed (MHz) 3000 (rated)
2167 (real)
Bus frequency (MHz) 166
Clock multiplier 13
Low power features Halt state
Stop Grant states
Sleep state
Probe state
Other features MMX technology
SSE
3DNow! Professional
Level 1 cache size 64 KB code
64 KB data
Level 2 cache size Full-speed exclusive on-die 512 KB
Floating Point Unit Integrated
V core (V) 1.65
Min/Max operating temperature (°C) 0 - 85
Typical/Max power dissipation (W) 58.4 / 74.3
The motherboard is a new board so there are no previous settings
:wall:looking at the listing i think i have been told the wrong settings ,should it be 13 x 166 not 10.5 x 200 -
Continued : How are PHP pages created like this ...
First off - thanks to every who had replied earlier, you guys
solved my
_initial_ question. I've come across another ...
I'm going to be inserting code that I wanted echo'ed
(printed) like so -
if ($var == 10) {
echo ....
However, when I insert the code there - any apostrophes or
quotes inside the
code throws it in the crapper and chops up everything. I also
tried passing
it as a string and still the same thing.
Inside the code I wanted printed I use a <?php .... ?>
section also, which
shouldn't matter if I'm printing this stuff correctly. What's
the work
around for this?
Examples of errors:
echo "<p style="example"> This is an example
</p>"
---------------^^^^^^
$test = '<p style="font-size: 10px">This apostrophe in
can't breaks the
string</p>';
Thanks for your time, guys.
Shane H
[email protected]
http://www.avenuedesigners.comHere is the PHP code that is inside the string I'm creating
and echo'ing
that is supposed to print errors when the form has been
submitted, which is
obvsiouly printing stuff too soon on that example page:
<?php
if(isset($Errors) && is_array($Errors) &&
count($Errors)) {
echo \'<p class="required" style="font-style: italic;
font-weight:
bold">The following required fields are missing:
</p>\'."\n";
echo \'<p class="required">\'."\n";
foreach($Errors as $Error) echo \'*
\'.$Error.\'<br>\'."\n";
echo \'</p>\'."\n";
if(isset($MailSuccess)) {
if(!$MailSuccess) {
echo \'<p class="required">There was an unexpected
error. Please try
later</p>\'."\n";
?>
Shane H
[email protected]
http://www.avenuedesigners.com
"Shane H" <[email protected]> wrote in
message
news:[email protected]...
> Seb - great I really like that way. The only thing that
is throwing me
> trouble now is that I'm using <?php ... ?> inside
of the string I'm
> creating then echo'ing - here is an example page:
>
>
http://www.avenuedesigners.com/about2.php?id=10
>
> Inside those forms, the values are getting PHP
statements, example like:
> value="<?php ... ?>".
>
> Also, before the form, I'm using a PHP statement to
check for errors,
> again like: <?php ... ?>.
>
> Help?
>
> --
> Shane H
> [email protected]
>
http://www.avenuedesigners.com
>
>
> "(_seb_)" <[email protected]> wrote in message
> news:[email protected]...
>> Murray *ACE* wrote:
>>>>echo "<p style="example"> This is an
example </p>"
>>>
>>>
>>> echo "<p style=".'"example">This is an
example</p>';
>>>
>>>
>>>>$test = '<p style="font-size:
10px">This apostrophe in can't breaks the
>>>>string</p>';
>>>
>>>
>>> $test = '<p style="font-size: 10px">This
apostrophe in can'."'t breaks
>>> the
>>> string</p>";
>>>
>>
>> a less confusing solution IMHO, use single quotes
for your PHP strings,
>> so all the html double quotes will be safe, and you
only need to escape
>> the single quotes in your html/text:
>>
>> echo '<p style="example">it\'s way
easier</p>';
>>
>> depending on the situation, you can also use the
addslashes() and
>> stripslashes() PHP functions:
>>
>>
http://us3.php.net/manual/en/function.addslashes.php
>>
http://us3.php.net/manual/en/function.stripslashes.php
>>
>>
>>
>> --
>> seb ( [email protected])
>>
http://webtrans1.com | high-end web
design
>> Downloads: Slide Show, Directory Browser, Mailing
List
>
>
Maybe you are looking for
-
Please some one help me ... A) my mac won't shut down with external HD connected (if it's been used) B) there are disk permissions that can't be fixed SUID stuff .. C) I have now verified the Mac HD and it tells me it's corrupt in bold red writing an
-
Problem with local editing after update to SP13
Hallo, we have updated our Enterprise Portla 7.00 to SP13. Now many user have Problem with local editing. The error message is "The download of the document fail". I know that every PC needs the "Docservice" Active X component installed. The "Docserv
-
I have a simple ordering application built with CF using an Access db. I need to produce some weekly summary stat reports and don't know how to go about doing it. I will be using sql. My db contains a date_submitted (when the order was entered into t
-
Need help setting up roundcube webmail in Apple Mail app
My wife's work uses an email service known as Roundcube for their email which from what I can tell is an IMAP service. She wants to be able to access the email from her Apple Mail app but I am not sure what the setting I should put in are for incomin
-
Reduce the number of ticks on an xy plot
Hi All, I have a graph that looks very busy on the x- axis . Does anyone know a way of reducing the numbers of ticks so that only, say 5, are visible? Thanks, Sean Solved! Go to Solution.