Hey all,

I just wanted to share with you my login and sign up package i put
together for those of you who are looking to work with PHP and the
iUI.

download at:  http://mobiquio.com/UI/iphone-ui/iphone-phpui-v1.0.zip

Login & Signup Session Control iPhone PHP class - By Jason Navarro
http://www.mobiquio.com
4/15/08
=======================================================================

This is a rough layout for login, signup and search functions written
in PHP. This Package includes a modified iUI and css reloading and
direct access to any page on your site.

Modified Back Button Behavior

For more information about Back Button Behavior Modification See:

http://groups.google.com/group/iphonewebdev/browse_thread/thread/916f1ddd0dc1fb99/f345862717d1609b?lnk=gst&q=back+button#f345862717d1609b

-----------------------------------------------------------------------
Add your functions to the index.html.php page

<?php
function MyFunction1 {
?>
<form id="myform" title="MyFormTitle" class="dialog"
action="index2.php?option=dologin" method="post"></form>
<?php
}
?>

-----OR-----

<?php
function MyFunction2 {
?>
<ul id="mylist" title="MyListTitle" class="dialog">

</ul>
<?php
}
?>

-----OR-----

<?php
function MyFunction3 {
?>
<div id="mylayer" title="MyLayerTitle" class="panel">

</div>
<?php
}
?>


-----------------------------------------------------------------------
You will also have to add the switch for each of your options to the
new class as so.

$task = $_REQUEST['option'];

case "mylayer": //name of your id tag
        html_AF::MyFunction3 ();
        break;

-----------------------------------------------------------------------

NOTES:

This is built to work with your database. Open config.php and change
your db login and pass details. You will also have to query data from
your own database as I removed all references to my db. You will need
to at least setup a user table.

index2.php handels all switching of html functions, It would be OK if
you want to include the contents of index2.php on index.php instead.
If you choose to do so then you will need to make sure all you links
point to index.php=option=myoption.

Bugs:

One problem I found with this is after login/signup dialog or other
dialogs close the page slides but the old page is still loaded. to fix
this you can add an onload(function) to the <div, <ul, or <form such
as loading a canvas or image. !!!!!! This problem only happens with a
slow EGDE connection, No problem on wifi or safari desktop.

Another solution to slide the page would be to add axis="y" and make
the page slide up.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to