I'm new to flex, and I would like to create a simple login + password using amfphp
Hi all
I try to make a simple connection using amfphp and mysql password, I have a small question, I don't ' know how to recover my answer of php. Thanks in advance if anyone could help me.
Best regards
I want to say to the tag < mx:Label x = "380" y = "10" id = "lResponse" / > php response
I just want to take over the response of php.
Here's my mxml:
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
xmlns:s = "library://ns.adobe.com/flex/spark".
xmlns:MX = "library://ns.adobe.com/flex/halo" minWidth = "1024" minHeight = "768" >
< fx:Script >
<! [CDATA]
Import mx.controls.dataGridClasses.DataGridColumn;
import flash.net.Responder;
Import mx.events.DataGridEvent;
Import org.corlan.VOAuthor;
private void checkpassword (): void {}
var newauthor:VOAuthor = new VOAuthor();
NewAuthor.lname_aut = nom.text;
NewAuthor.fname_aut = prenom.text;
myRemote.validate (newauthor);
}
private function checkInput (): void
{
If (nom.text == "" |) first name. Text == "")
{
lResponse.text = ' Please fill all the fields;
}
on the other
{
lResponse.text = "connect";
CheckPassword();
checkLogin ("login. Verify.Validate", [name. Text, first name. Text]);
}
}
[]] >
< / fx:Script >
< fx:Declarations >
<! - Place non-visual elements (e.g., services, items of value) here - >
< mx:RemoteObject id = "myRemote" destination = "MyService" source = "MyService".
endpoint=" http://localhost/AMFPHP/gateway.php "showBusyCursor ="true"/ > "
< / fx:Declarations >
< s:Panel = "334" x = "168" width = "245" height = "135" title = "Log" textAlign = "center" >
< s:TextInput = "102" x = "10" textAlign = "left" id = "name" / >
< s:TextInput = "102" x = "40" textAlign = "left" id = "FirstName" / >
< s:RichText x = "50" y = "6" text = "" Login: "height ="22"width ="56"textAlign ="left"verticalAlign ="bottom"/ >"
< s:RichText = "27" x = "46" text = "" password: "height ="20"/ >"
< s:Button = "125" x = "70" label = "Connect" width = "105" click = "checkInput ()" / >
< mx:Label x = "380" y = "10" id = "lResponse" / >
< / s:Panel >
< / s:Application >
Here is my php code:
<? PHP
session_start();
require_once ('. / vo/org/corlan/VOAuthor.php');
Conection info
define ("DATABASE_SERVER", "127.0.0.1");
define ('DATABASE_USERNAME', 'root');
define ("DATABASE_PASSWORD", "xxxx");
define ('database_name', 'flex360');
class MyService {}
function validate ($author) {}
$mysql = mysql_connect (DATABASE_SERVER, DATABASE_USERNAME, DATABASE_PASSWORD);
@mysql_select_db (database_name);
$user = $author [0];
$pass = $author [1];
$query = "SELECT DISTINCT * from authors_aut WHERE fname_aut = '$user' AND lname_aut = '$pass" ";
$rs = mysql_query ($query);
$var = mysql_fetch_assoc ($rs);
$u = $var ["fname_aut"];
$p = $var ["lname_aut"];
If ($pass! = $p) {}
$response [0] = 'INVALID ';
$response [1] = 'invalid username or password ";
} else {}
$response [0] = "VALID";
$response [1] = 'welcome $u. '
}
Return $response;
}
}
? >
Try here:
http://www.vipercreations.com/tutorials/Adobe%20Flex/28.html
Tags: Flex
Similar Questions
-
Hi, I have Adobe Acrobat Professional. And I would like to create web forms via Adobe for my site. What I have? or is it included in my Acrobat Professional software?
When you say that web forms, do you mean HTML forms or PDF forms? For web forms, Adobe has a number of products, you can use, including FormsCentral and Dreamweaver. For PDF forms, you can create them with Acrobat.
If you want to create HTML forms with FormsCentral, which calls the web forms, you will need a subscription for the FormsCentral service. The FormsCentral application that comes with 11 Acrobat is used to create local PDF forms, but if you want to create web forms with him you will need a subscription. Note that there is a free subscription, but it is quite limited.
-
Hello guys, I would like to create a product for a website builder. Any help?
I am a creator of display for oral care products, and I would like to create a product configurator, so that my clients can customize the model they want, and see how the model looks like with a reactive "modeling."
So basically it should have different options:
- Choose the number of brushes they want on the view (1-9)
- Choose the model of brushes they want (12 different available)
- Choose the 'extra' part they want (small screen lcd, Panel information or refills showcase)
- Choose the position they want for each option (eg. 2 brushes (left) + screen lcd (just after the 2 brushes) + 1 brushes (at the end)
To give you an idea here is a fast modeling that I did:
The real problem I have is that I don't want to have to create all the possible arrangements
1 and 2 the best way is to have all the variations in a database and query the database for the corresponding products.
Then have drop-down lists so that a choice can be made
-
I have my photoshop cs6 installed in a Mac, but now I have a new PC and I would like to install in it. How can I proceed? I still have to buy? Thank you!
Exchange https://helpx.adobe.com/x-productkb/policy-pricing/exchange-product-language-os.html
-
Hi, I already have two licenses on Mac (I can use it to the max) and I would like to install a new license on a PC.
Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html
-Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
-Windows or Mac has no importance... 2 on the same operating system or 1 on each
-Two activations on one account CAN NOT be used at the same time (to be noted in the link above of the license)
-An individual account is for one person and may not be shared with anyone else
.
Remove the license on a computer http://forums.adobe.com/thread/1442423?tstart=0 clouds can help
-read http://helpx.adobe.com/x-productkb/policy-pricing/error-maxium-acitvation-exceeded.html
-or https://helpx.adobe.com/x-productkb/policy-pricing/activate-deactivate-products.html
-
I already have 5 Lightroom and installed on my PC. Yesterday, I bought a Macbook Pro and I would like to install my Lightroom 5 in my new Macbook Pro. Is it possible to install on two different computers? If Yes, how is it possible to install via the Internet, like my Macbook Pro doesn't have CD Driver. Thank you very much for your support. Hope.
Hello
You can install and activate the perpetual software (purchased) two computers, as long as you don't use it on one at a time.
To load the software on another computer, download and install it as you did on the first computer. Then enter your serial number to activate it.
Please find the link below to download:-Download Photoshop Lightroom
-
Hi, I bought a new laptop and I would like to install Photoshop 5.5 Extended for the new laptop computer. Something to consider before you begin to install?
The reason is to avoid any inconvenience. What do I need to uninstall Photoshop beforehand?
Thanks for the tips
The mobile fact have separate start-up and data readers? If so and the boot drive has limited space, you may want to consider relocation of things like bridges on the data disk cache. I can't think another thing to consider from the start, however.
-
Hello.. I'm from the programming, but new to actionscript. I would like to ask if there was a library where all built in functions, methods, and events can be searched. As for VB, MSDN (of Microsoft Developer Network) used to be there. More than once it happens that I write a few lines of code, but a built-in function already exists for the same thing. Is there a way to check it out ahead of time?
An online resource are QAnywhere® to Adobe ActionScript 3 (AS3)
-
I have CS5.1 on a single computer and I would like to install the new computer (by download) that I have to disable the original program first?
You are allowed to have facilities of acrivated twop is not necessary that you clear the first, even if you can, if you wish to have available additional activation.
-
Hello, I have the version of visual studio 2010 ultimate and aparently there is a beta version of it 2011 and I would like to know if I can install the 2011 ultimate overwrting the 2010 release of visual studio 2010 ultimate version. should I uninstal it manually first? (even if I deleted the main application, some remained after) what should I do? I need help with this problem because I don't know if I need to uninstall the version of 2010 in order to install the new 2011 beta version or I just have to update like a normal program?
Hello
You'd be better suited post directly in the Visual Studio Forum for your questions.
"" Installation and configuration of visual Studio".
http://social.msdn.Microsoft.com/forums/en/vssetup/threads
See you soon.
-
Hello, I have creative cloud (programms photoshop, bridge, and lightroom on a HP Pavilion pc and UN laptop.) The laptop does not work more (broken) and I ' would like to install all programs on another laptop. How do I uninstall the programs of the broken laptop and not running before installing on a new? Sincere friendships Fabian
Hello
If you have access to the machine, turn off Adobe CC applications by the signature of the application.
Please see connect and disconnect to activate Cloud Creative applications
Kind regards
Sheena
-
Hi guys I just created my new form and it was very easy. However once I convert it to PDF format the boxes in the form are blue and I would like to change the color. any know if this is possible?
The blue background is the field pointing out you have the option to turn off. If you don't see the purple bar on top with the toggle button to highlight the fields, it should display by clicking on the icon above (purplish) in the left navigation pane
-
I have an iPhone 5s and I would like to know if I can transfer photos to an sd card or an external hard drive with the help of my computer
Try a USB port like this:
-
I don't remember set up sync ACCT. But am not computer savvy (can get). Check Sync and discovered an acct is set, but not with my email. My friend used my computer and I don't know if she wanted to do, but now ACCT. is his email, and I would like to change this, but am afraid to delete all data and make a slurry of something already messed up.
Use: Tools > Options > synchronization > ungroup this device
-
Watch do not capture my activity and I would like to save
I just bought my Apple Watch. I worked very hard on 35 minutes this morning but not captured in the data. He said I had three active minutes and I would like to save the workout and claim my activity. Any ideas on why it does not recognize, I have been active? I got a Fitbit previously and was always able to go back and record activity if I forgot to set my watch before starting my session. In addition, what apps would you recommend that pair with the watch? I noticed there are many apps suggested running but I do boot camp type training. Thank you!
Hello
If you have used application of the workout, workout accidentally have suspended or ended early.
This can happen if the watch loses contact with your skin, leading them to believe that he had been removed from your wrist. Would this workout app to pause automatically. A bunch of cowards can trigger this by allowing your watch raise your wrist or clothing (for example, the end of a handle) to fit under the back of the watch.
During the year, Apple Watch should be worn comfortably on top of your wrist. Apple suggests that you consider your clamping Strip before workouts and it loosen again thereafter. Better contact with your wrist can also improve the performance of sensor of heart rate during your workout.
In addition, in order to avoid accidental interactions with your watch during your workout (including the abolition of the workouts in the beginning), you can lock the screen. At any time after the beginning of a workout, press firmly on the screen and press the lock. When you are ready to put an end to the workout, press firmly again and first press on unlock.
Maybe you are looking for
-
What are the symbols below the post titles?
the check mark that I receive, check mark green, resolved. What is the Red Star? I have however it could be new positions or those I had not read, but these two criteria appear not to be the case. What is the black Apple? If it was Apple feedback but
-
Hello world I have been using a touch screen for a project. I am now able to read hexadecimal values and convert them to decimals through LabVIEW. However, I need to be able to read the beginning bit everytime. Now, when I move my finger on the touch
-
Hello guys,. Using the property node, I confused with the terminal of reference there. Can we establish a special reference to the control (button, for example), but obviouly I couldn't connect the button directly to the point of reference. I find an
-
OfficeJet 4634: "incompatible cartridge".
Hello I've had my printer for about a month. I only use HP 301 cartridges authentic when replace (just once) I came to replace again today and the Canadiens isfine, but it will not accept the B & W cartridge. I cleaned the contacts as described, bo
-
Network to share Internet between a laptop XP SP2 and Vista Home Premium desktop
I hope this is the right forum. I'm a graduate student in the field of information TECHNOLOGY as well as a few certifications, so I'll have people ask me some questions on how to troubleshoot certain aspects of their computer. Given that I have not l