Login
·
Signup
Home
»
XtGem
»
Tips and code snippets
»
cara pembuatan login and register dan kodenya
» View post
XTMEDIA
hadisofian
Ya kan udah di kasih tau tuh linknya masih ada, aku pake xtscript ini
<!--parser:xtscript--> # Get the username from the form get username # Check for a cookie or default to the entered name from the form var $username = call cookie::get $name=mycookie;$default=$username # If the username is set refresh or create the cookie and output the username if $username call cookie::set $name=mycookie; $val=$username; $expire=99999999;$force_current=1; print (tambahkan menu setelah login disini) contoh: <div class="menu">Hai $username selamat datang</div> else # Show the form var $self=<xt:url /> print {{ <form action="$self" method="post"> <input name="username" /> <input type="submit" /> </form>}} endif <!--/parser:xtscript-->
tinggal kamu edit aja mau seperti apa. Disitus heriwap aku cuma pake cbox
#
2015-02-16 12:15 (edited 2015-02-16 12:23 by
XTMEDIA
) ·
(0)
Home
»
XtGem
»
Tips and code snippets
»
cara pembuatan login and register dan kodenya
» View post
Online: Guests: 1
Log in