Do I Need A Switch? - Joomla! Forum - community, help and support
i've got form , when user clicks submit button, want verify logged in first , submit data. if aren't logged in, want message pop telling them must logged in use form , have script die form. switch statement going best bet? can switch statement?
i realize can use php prevent form loading if user not logged in, want form show no matter what. becomes client-side issue , i'm trying figure out how handle , switch php submission of data database.
suggestions? pointers?
edit: should have mentioned here because pertains component i'm creating.
i realize can use php prevent form loading if user not logged in, want form show no matter what. becomes client-side issue , i'm trying figure out how handle , switch php submission of data database.
suggestions? pointers?
edit: should have mentioned here because pertains component i'm creating.
darrin365 wrote:i've got form , when user clicks submit button, want verify logged in first , submit data. if aren't logged in, want message pop telling them must logged in use form , have script die form. switch statement going best bet? can switch statement?
i realize can use php prevent form loading if user not logged in, want form show no matter what. becomes client-side issue , i'm trying figure out how handle , switch php submission of data database.
yes, think use switch statement there...
suggestions? pointers?
edit: should have mentioned here because pertains component i'm creating.
i recommend analyzing joomla's default components, can learn lot joomla components, structure , built in functions/classes.
some component tutorials:
http://www.jlleblanc.com/joomla/tutoria ... _tutorial/
and
http://help.joomla.org/content/section/12/125/
joomla's 1.0.x api: http://help.joomla.org/api/
(note: http://forum.joomla.org/index.php/topic ... #msg605039 )
mambo's api: http://help.mamboserver.com/api/ similar joomla's.
if want develop components 1.5 might reference: http://api.joomla.org/
component , modules tutorials: http://forum.joomla.org/index.php/topic,63383.0.html
Comments
Post a Comment