代碼 會員注冊的網(wǎng)頁代碼是什么?后面有一個連接怎?
會員注冊的網(wǎng)頁代碼是什么?后面有一個連接怎?<head><script>函數(shù)頁(url){window.location.href(URL)}</script></head
會員注冊的網(wǎng)頁代碼是什么?后面有一個連接怎?
<head><script>函數(shù)頁(url){window.location.href(URL)}</script></head><body><inputtype=“button”name=“opennew”value=“member registration”onclick=“page(”<%=basepath%>公共/注冊.jsp“”</body>使用onclick=“頁面(”<%=basepath%>公共/注冊.jsp)只要在<head>中間聲明函數(shù)。那就給我打電話。
做完一個網(wǎng)站但需要加一個會員注冊的功能,但是不會ASP,求會員注冊的代碼。萬分感謝?
PHP可以嗎?代碼如下:連接.phpSmarty和jump都是從外部引用的,希望您能理解它們(PHP)R//insert1。PHPrregister“ }else{r$select=”select*from user where name=“$name”“ $user=MySQLuquery($select) if($row=MySQLufetchuuarray($user)){r new jump(”用戶名已注冊?!?,”模板/注冊.html“) }else{ if($password1==$password2){ $insert=”插入用戶(名稱、密碼)值(“$name”,“$password1”)“ $result=mysqluquery($insert)r if($result!=0){r echo“注冊成功
!輸入消息
返回主頁
“r}否則{r new jump(”注冊失?。 ?,”模板/注冊.html“template”{r!的密碼!}兩次不同/注冊.html“” } } } } } ?> 注冊.html