Accessibility
Adobe
Search
* Welcome nitsmooth
* Your account
* Sign out
* Your cart
* Contact
* United States (Change)
* Home
* Solutions
Industries
Broadcast and media
Education
Financial services
Government
Life sciences
Manufacturing
Solutions
Consumer photo and video
Mobile
Print publishing
Pro photography
Professional video
Rich Internet applications
Technical communication
Training and eLearning
Web conferencing
Web publishing
All industries and solutions ›
* Products
o Acrobat Connect Pro
o Acrobat family
o Adobe AIR
o After Effects
o ColdFusion
o Creative Suite family
o Dreamweaver
o Flash
o Flex
o Illustrator
o InDesign
o LiveCycle Enterprise Suite
o Mobile products
o Photoshop family
o Adobe Premiere Pro
o Scene7 OnDemand
o All products ›
* Support
o Support home
o Customer Service
o Knowledgebase
o Books
o Training and certification
o Support programs
o Forums
o Documentation
o Updates
o More ›
* Communities
By user
Designers
Developers
Educators and students
Partners
By resource
Adobe Labs
Adobe TV
Forums
Exchange
Blogs
* Company
o About Adobe
o Press
o Investor Relations
o Corporate Affairs
o Careers
o Showcase
o Events
o Contact Adobe
o Become an affiliate
o More ›
* Downloads
Downloads home
Trial downloads
Updates
Exchange
Readers and Players
Get Adobe Reader
Get Flash Player
Get Adobe AIR
Get Shockwave Player
Get Media Player
More ›
* Store
o Store home
o Software
o Fonts
o Books
o Support programs
o Your account
o Volume licensing
o Store offers
o Other ways to buy ›
1. Home
2. Support
3. Forums
4. Flex Support Forums
Flex General Discussion
0 message(s) 0 new messages
* Home
* New Topic
* Profile
* Logout
* My Forums
* Search
* Help
07:35:55 AM Refresh
There are currently 16 users logged in.
FORUMS : Flex General Discussion
RSSrss feed
Other Flex Support Forums
Topic Title login using flex
Topic Summary
Created On 07/15/2008 06:54:24 AM
Topic View
* Quick Reply
* Subscribe to this topic
* E-mail this topic to someone
* Add this topic to my forum favorites
* View topic in raw text format
Posted By Post
nitsmooth
User is online
Member Posts: 22
Joined: 07/04/2008
Send Private Message
07/15/2008 06:54:24 AM New Messages
Reply | Quote | Top | Bottom | Edit
I m creating my login page in loginpage.mxml but the values are not getting
sent to the php page login.php....plz help
loginpage.mxml
---------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"
layout="absolute">
<mx:HTTPService id="Login" url="http://localhost/mixbook/login.php"
useProxy="false" method="POST">
<mx:request xmlns="">
<emailaddress>{emailaddress.text}</emailaddress>
<password>{password.text}</password>
</mx:request>
</mx:HTTPService>
<mx:Panel width="100%" height="100%" layout="absolute" y="5" x="19">
<mx:Canvas label="View 1" width="100%" height="100%">
<mx:Canvas label="or" width="100%" height="649" x="9" y="0" color="#0A3F4A"
alpha="1.0">
<mx:Button x="339.5" y="37" label="Home" width="72" click="navigateToURL(new
URLRequest('home.swf'),'_top')"/>
<mx:Button x="419.5" y="37" label="Create" click="navigateToURL(new
URLRequest('create.swf'),'_top')"/>
<mx:Button x="491.5" y="37" label="Explore" click="navigateToURL(new
URLRequest('explore.swf'),'_top')"/>
<mx:Panel x="10" y="67" width="863" height="40" layout="absolute"
borderColor="#18237B"></mx:Panel>
<mx:Label x="634" y="10" text="inbox"/>
<mx:Label x="678" y="10" text="accounts"/>
<mx:Label x="739" y="10" text="help"/>
<mx:Label x="780" y="10" text="logout"/>
<mx:ProgressBar id="progressBar" indeterminate="true" visible="false" />
<mx:Text x="54" y="124" text="Login to Mixbook.com" fontSize="23"
fontStyle="normal" textDecoration="underline"/>
<mx:Text x="491.5" y="140" text="or" width="15.5" color="black"
fontSize="11"/>
<mx:Text x="530" y="137" text="sign up for an accounts" color="#0C7086"
textDecoration="underline" fontSize="14" click="navigateToURL(new
URLRequest('signup.swf'))"/>
<mx:Panel x="22" y="166" width="758" height="351" layout="absolute"
borderColor="#0B0000">
<mx:Text x="78" y="10" text="Email Address:" fontSize="15"
fontWeight="bold"/>
<mx:Text x="78" y="71" text="Password:" fontSize="15" fontWeight="bold"/>
<mx:TextInput x="301" y="13" borderStyle="solid" width="326" height="30"
id="emailaddress"/>
<mx:TextInput x="301" y="75" width="326" height="32" borderStyle="solid"
id="password"/>
<mx:CheckBox x="226" y="144" label="remember me on this computer"
width="379" fontSize="12" fontWeight="bold"/>
<mx:Button x="273" y="195" label="Login to Mixbook" cornerRadius="9"
width="219" fontWeight="bold" fontSize="13" fillAlphas="[1.0, 1.0]"
fillColors="[#A05F60, #0B4867]" color="#C49483"/>
<mx:Text x="243" y="247" text="forgor your password"/>
<mx:Text x="430" y="247" text="reset it" fontWeight="bold" fontSize="11"
textDecoration="underline" click="Login.send()"/>
</mx:Panel>
<mx:TextArea x="79" y="10" text="reserved for logo" fontSize="19"
width="209"/>
</mx:Canvas>
</mx:Canvas>
</mx:Panel>
</mx:Application>
login.php
-----------------
<?php
$con = mysql_connect(localhost, "root", "");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("mixbook" ,$con);
$fp = fopen("test.txt","a+");
fwrite($fp,$_POST[emailaddress]."\r\n");
$email = $_POST[emailaddress];
$pass = $_POST[password];
$query = "select * from `usertable` where `emailaddress` =
'".$_POST[emailaddress]."' and `password` = '".$_POST[password]."' ";
//$query = "Select * from usertable where emailaddress =
'".$_POST['emailaddress']."' and password = '".$_POST['password']."' ";
$result = mysql_query($query);
echo $query;
$rowcount = mysql_num_rows($result);
if($rowcount == 1)
echo"login successfull";
else
echo"no";
?>
Mark this message as the answer.
Print this message
Report this to a Moderator
Quick Reply
* Subscribe to this topic
* E-mail this topic to someone
* Add this topic to my forum favorites
* View topic in raw text format
Important Note: These online forums are for user-to-user discussions of
Adobe products, and are not an official customer support channel for Adobe.
If you require direct assistance, or prefer to contact Adobe support staff
directly, please contact Adobe support.
FuseTalk Standard Edition - © 1999-2008 FuseTalk Inc. All rights reserved.
* Company
* Online Privacy Policy
* Terms of Use
* Contact us
* Accessibility
* Report piracy
* Permissions and trademarks
* Product license agreements
* Send feedback
Reviewed by TRUSTe: site privacy statement
Copyright © 2008 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online
Privacy Policy (updated 07-08-2008).
Search powered by Powered by Google
--
View this message in context:
http://www.nabble.com/flex-php-login-tp18458603p18458603.html
Sent from the FlexCoders mailing list archive at Nabble.com.