This question already has an answer here:
This question unfortunately is fairly specific in that I may/may not need a Joomla! specialist to help me with this (hopefully I don't and someone with good php/mysql knowledge can help).
http://pastebin.com/JRhNB4EP - I've had to put my code in pastebin because the file is pretty damn large and I didn't want to flood this page with code.
So let me explain what the form does: it allows users to create a listing under a selected business type, but what I need implementing is that once the form is submitted, it creates a user under the ACL 'Registered' and randomly generates a password form them. The username would be the email that they provided. This info would then also get sent to the email provided.
I've looked around for help for a couple days now (usually a couple hours here and there within the day) but as the question is so specific, I haven't come across anything that's clear cut.
Any help/pointers/references that can point me in the right direction will be greatly appreciated! Thanks in advance.
Try this,
Assume that your submission page is not part of joomla ie, outside joomla frame work.
Step 1:
Step 2:
Step 3: Check user name already exists on DB.
Hope it make sense..
Something similar.. But you get the idea :
HTML Code :
PHP Code to be executed on form submit