Shell CoovaChilli在成功登录时重定向到新页面,以显示用户帐户余额
我正在工作的库瓦切利项目。我有使用PHP的经验,但我对shell脚本非常陌生。尽管我在谷歌上搜索并阅读了Coova的支持博客,但它们似乎并没有为初学者提供指导 我试图做的是在成功登录后,将用户重定向到新页面。 可悲的是,我不知道我在做什么,但我所做的是我试图遵循他们使用的完全相同的路径,引导用户在点击按钮时注册页面 他们有两个主要的不同的文件扩展名链接注册过程 newuser.chi newuser.chi.save newuser_form.tmpl 迟先生 因此,我为我的新文件创建了相同的文件扩展名 tmpl(我想我必须在其中显示用户的余额) 中成药 在“提交”按钮的登录页面中,我添加了我的新文件Shell CoovaChilli在成功登录时重定向到新页面,以显示用户帐户余额,shell,coovachilli,Shell,Coovachilli,我正在工作的库瓦切利项目。我有使用PHP的经验,但我对shell脚本非常陌生。尽管我在谷歌上搜索并阅读了Coova的支持博客,但它们似乎并没有为初学者提供指导 我试图做的是在成功登录后,将用户重定向到新页面。 可悲的是,我不知道我在做什么,但我所做的是我试图遵循他们使用的完全相同的路径,引导用户在点击按钮时注册页面 他们有两个主要的不同的文件扩展名链接注册过程 newuser.chi newuser.chi.save newuser_form.tmpl 迟先生 因此,我为我的新文件创建了相同的文
<!--
-- The login form
-->
<div id="login-form">
<table>
<tr>
<td>Username</td>
<td><INPUT NAME="username" VALUE="$FORM_username"></td>
</tr>
<tr>
<td>Password</td>
<td><INPUT NAME="password" VALUE="$FORM_password" TYPE="password"></td>
</tr>
<tr>
<td colspan="2" nowrap align="center">
<input type="button" name="signup" value="Sign Up" onClick="window.location='/www/newuser.chi'">
<input type="submit" name="button" value="Login" onClick="window.location='/www/intermediate.chi'">
</td>
</tr>
</table>
</div>
我无法将其成功重定向到按钮单击时的空白页,更不用说在其上显示用户的余额了。您能告诉我们您尝试了什么吗?例如,您发现手册中最相关的部分是什么?您已经向我们提供了您现有的代码,但读者普遍希望之前的研究能够得到演示,而不仅仅是声明。@halfer您好,感谢您的回复。我更新了问题的更多细节。我试图准确地复制他们在重定向中所做的操作,因为我几乎不知道代码到底说了什么…:(更好,谢谢-我不知道这项技术,但至少有更多的细节可以帮助读者。哦!我的错,谢谢。我感谢你的帮助。你能告诉我们你尝试了什么吗?例如,你发现手册的哪一部分最相关?你已经给了我们你现有的代码,但读者通常都很喜欢以前的研究ch是演示的,而不是仅仅声称的。@哈弗嗨,谢谢你的回答。我用更多的细节更新了问题。我试图准确地复制他们在重定向中所做的,因为我几乎不知道代码到底说了什么…:(好多了,谢谢-我不知道这项技术,但至少有更多的细节可以帮助读者。哦!我的错,谢谢。我感谢你的帮助。
<div id="intermediate-form">
<table>
<tr>
<td>Reload</td>
<td><input type="button" name="reload" value="Reload" onClick="window.location='/www/recharge.chi'"></td>
</tr>
<tr>
<td>Balance</td>
<td>**---I Need To Display Customer's Balance Here---**</td>
</tr>
<tr>
<td colspan="2" nowrap align="center">
<input type="button" name="continue" value="Continue" onClick="window.location='http://www.earlierSuccessfullPage.com'">
</td>
</tr>
</table>
</div>
<? # -*- mode: shell-script -*-
# Copyright (C) 2009-2011 Coova Technologies, LLC. <support@coova.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. ./config.sh
http_header
header "<meta></meta>"
uamfile "login 1"
intermediate /* <= I followed what they did in signup */
footer
?>
intermediate(){
form "intermediate.chi" "$(uamfile intermediate 1)"
}