millenium
13 May 2007, 6:28 AM
Hi all :),
I try to finish a registration form by sending the datas to php and to display "registration ok" on my page after that "success" is sending back from php.
In the code below it's my code for the submit button and php (second code) sends well "success:true" (viewable in the console)
But i don't know where i can use the value of success to display "registration ok", with which action.
1) Does somebody have a small example on how to do that?
2) secondly, all the sent variables from php to ext must be with {}?
Sorry for my english (i'm belgian)
Thanks in advance,
var submit = form_member.addButton({
text: 'Inscription',
disabled:false,
handler: function(){
if(form_member.isValid()){
form_member.submit({url:'verif_insc.php', waitMsg:'Inscription en cours...'});
}
}
});
<?php
echo "{success:true}";
?>
I try to finish a registration form by sending the datas to php and to display "registration ok" on my page after that "success" is sending back from php.
In the code below it's my code for the submit button and php (second code) sends well "success:true" (viewable in the console)
But i don't know where i can use the value of success to display "registration ok", with which action.
1) Does somebody have a small example on how to do that?
2) secondly, all the sent variables from php to ext must be with {}?
Sorry for my english (i'm belgian)
Thanks in advance,
var submit = form_member.addButton({
text: 'Inscription',
disabled:false,
handler: function(){
if(form_member.isValid()){
form_member.submit({url:'verif_insc.php', waitMsg:'Inscription en cours...'});
}
}
});
<?php
echo "{success:true}";
?>