Hi Pasiunia,
I have replaced the file. you will not be needing the dialog box. Please download it again .
With Regards
Printable View
Hi Pasiunia,
I have replaced the file. you will not be needing the dialog box. Please download it again .
With Regards
I don't really see the point of creating a table with a script. My idea would be to create that table manually (like through PHPMyAdmin) and then you would just need to send all the values of edit boxes into a PHP script (using POST method).
BTW, I've heard that Live Receiver got replaced with the Get object, but I can't seem to find how to send data using POST method with it, so I've used the Live Receiver in this example (hopefully somebody's gonna tell me how to use POST with the Get object).
The example is really simple, without any security checking, since the idea is to see how to communicate with PHP files and MySQL database through MMF.
You need to put some values into the PHP files.
Config.php - your database username and password,
Register.php - your database name and your table name.
I hope it's gonna help you :) Feel free to ask, if you don't understand something.
http://www.speedyshare.com/files/22063139/Example.rar
EDIT: Ah, sorry, I forgot to change the address of the register script in the MFA after testing xD You're probably gonna need to change it, too xP
You can't - you'd have to use GET parameters with the data you want to pass to the script. I'll probably add POST at some point (bit of a chew when there's three runtimes to do it for).Quote:
Originally Posted by Pasiunia
Ah, I see. So I guess I'm gonna stay with the Live Receiver, until you add the POST option :)
Good for you, but you can't distribute anything you make with it unless your target audience is people who really appreciate software that locks up. :)
I've never had any problems with it so far, but even if it does lock up, then I have no other choice at the moment, if I want to send data using POST.
(Yay, 200th post xD)
Hi Pasiunia,
Thank you very much for your efforts. The idea behind the table script was to ease your kind efforts and. Your example works great using live receiver but I am afraid there must be a good reason that Jamie recommend get object instead. Your example has answered some of the problems I have. I will now give it another try using get Object to see what other the problems I will face.
With Best Regards
If the data is short enough, you can just include it in the URL (something.php?data=here&moredata=here) and retrieve it in PHP with $_GET['data'] and $_GET['moredata'].
FINISH lacewing ! - and more people will use it;Quote:
Originally Posted by Jamie
your comments regarding moo are getting really OLD!
Yay, you made a stab at me without even taking the time to read the post I was replying to! That wasn't about Moo, it was about my old extension, Live Receiver.
And Lacewing is out of beta, so please get your facts straight before criticising me.