我正在使用asp(移动)开发一个Web应用程序.
当使用iPhone浏览器在搜索文本框中输入一些搜索文本时(<mobile:TextBox ID="txtSearchData" Runat="server" BreakAfter=False></mobile:TextBox>), iPhone会启动搜索键盘,当我使用iPhone键盘单击搜索按钮时,它会刷新整个页面,但是单击文本框下方的搜索按钮工作正常.
到目前为止,这是我的代码:
<body>
<mobile:Form ID="frmSearch" Runat="server" Font-Name="NotSet" Font-Size="Small">
<mobile:DeviceSpecific ID="dsSearch" Runat="server">
<Choice Filter="isHTML32">
<ScriptTemplate>
<link href="StyleSheets/Common.css" rel="stylesheet" type="text/css"></link>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta id="Meta1" name="viewport" content="width=device-width; initial-scale=1.0;" />
</ScriptTemplate>
<HeaderTemplate>
<table cellspacing="2" width="100%">
<tr>
<td width="100%">
<uc1:Header ID="ucHeader" runat="server" />
</td>
</tr>
</table>
<table>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td align="right">
Find :
</td>
<td>
<mobile:DeviceSpecific>
<Choice="isHTML32">
<ContentTemplate>
<asp:DropDownList ID="lstGroups" runat="server" OnSelectedIndexChanged="LstGroups_SelectedIndexChanged" AutoPostBack="true">
</asp:DropDownList>
</ContentTemplate>
</Choice>
</mobile:DeviceSpecific>
</td>
</tr>
<tr> …Run Code Online (Sandbox Code Playgroud) 我在menu.php中使用两个网页我无法获得会话变量的详细信息,它将显示未定义的索引.
$info = mysql_fetch_array( $data );
session_start();
// store session data
$type="$info[TYPE]";
$no="$info[NO]";
$_SESSION['type']=$type;
$_SESSION['no']=$no;
echo "Pageviews=". $_SESSION['type'];
echo "Pageviews=". $_SESSION['no'];
header('Location:menu.php');
Run Code Online (Sandbox Code Playgroud)
<?php sesstion_start();
echo "Pageviews=". $_SESSION['type'];
echo "Pageviews=". $_SESSION['no'];
?>
Run Code Online (Sandbox Code Playgroud)