文本输入字段不适用于智能手机

时间:2015-07-08 20:04:22

标签: android html5 text input numbers

我正在开发HTML5中的应用程序,我将通过Ludei Framework在Android App(使用WebView)中进行转换。 我还有一个PHP页面,托管在我的网站上,这是该应用程序的一部分。 我在应用程序的侧边栏菜单中创建了一个显示此页面的链接。

当我尝试在PHP页面的文本字段中编写内容时,我只能输入数字而不能输入字母。 如果我尝试使用我的智能手机浏览器打开同一页面,它可以正常运行而没有错误!

我能做什么!? 这只是应用程序的一个问题...

我还尝试使用其他表单样式,并且还包含带有iframe的PHP页面,但它仍然无效... 此外,它不会在文本输入字段,电子邮件输入字段,网址输入字段之间做差异... 它总是显示经典的自由......

谢谢你的建议=)

PHP页面代码:



<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
  	
	<title>RoyalRadio Framework</title>
    
	<link rel="stylesheet" href="../css/normalize.css" type="text/css" media="screen">
    <link rel="stylesheet" href="../css/main.css" type="text/css" media="screen">
    
	<!-- Color Scheme -->
    <link rel="stylesheet" href="../css/color.css" type="text/css" media="screen">
</head>
<body> 
	
		
		<div class="st-pusher">
			<div class="st-content">
				<div class="st-content-inner">
					<!-- Top Navigation -->
					<header>
						<h1>ROYAL RADIO</h1>
					</header>
					
					<br /><br />
					<div class="content">
						<fieldset>
							<legend align="center">CONTATTACI</legend>
							
<?php
/** Includiamo la class PHPMailer */
include_once('contattaci/PHPMailer.class.php');

/**La vostra e-mail, in cui ricevere l'email */
$email_sito = 'direzione@royalradio.it';

/**Il Nome del vostro sito web */
$nome_sito = 'RoyalRadio.it';

/** Recuperiamo i dati */
$nome = $_REQUEST['nome'];
$cognome = $_REQUEST['cognome'];
$email = $_REQUEST['email'];
$telefono = $_REQUEST['telefono'];
$sito = $_REQUEST['sito'];
$messaggio = $_REQUEST['messaggio'];
$IP = $_SERVER['REMOTE_ADDR'];

//controlliamo i campi obbligatori
if(empty($nome) || empty($cognome) || empty($email) || empty($telefono) || empty($messaggio)) {
    echo '<p class="error">Compila tutti i campi</p>';
} else {

$msg = "<strong>IP:</strong> $IP <br />";
$msg .= "<strong>Nome:</strong> $nome <br />";
$msg .= "<strong>Cognome:</strong> $cognome <br />";
$msg .= "<strong>E-mail:</strong> $email <br />";
$msg .= "<strong>Telefono:</strong> $telefono <br />";
$msg .= "<strong>Sito Web:</strong> $sito <br />";
$msg .= "<strong>Messaggio:</strong> $messaggio <br />";

/** Istanziamo la classe PHPMailer */
$mail = new PHPMailer();
$mail->From = $email;
$mail->FromName = ''.$nome.' '.$cognome.'';
$mail->AddAddress($email_sito);
$mail->IsHTML(true);
$mail->CharSet = 'UTF-8';
$mail->Subject = 'Nuova E-mail Da '.$nome_sito;
$mail->Body = $msg;
if($mail->Send()) echo "<p><b><center><font color=green><==> La tua e-mail &egrave; stata inviata <==></font></center></b><p>";

}
?>
							<form action="contattaci.php" method="post" id="formILC">
								<input type="text" name="nome" id="nome" placeholder="NOME*"/>
								<input type="text" name="cognome" id="cognome" placeholder="COGNOME*"/>
								<input type="email" name="email" id="email" placeholder="E-MAIL*"/>
								<input type="tel" name="telefono" id="telefono" placeholder="TELEFONO*"/>
								<input type="url" name="sito" id="sito" placeholder="SITO WEB"/>
								<textarea name="messaggio" id="messaggio" placeholder="MESSAGGIO"></textarea>
								<input type="submit" name='submit' class="button" value="INVIA IL MESSAGGIO"/>
							</form>
							<br /><br />
							<center><em><strong>Quando hai terminato, premi il tasto "Indietro" per tornare all'app.</strong></em></center>
						</fieldset>
					</div>  
				</div><!-- /st-content-inner -->
			</div><!-- /st-content -->
		</div><!-- /st-pusher -->
	</div><!-- /st-container -->

	
	<script src="../js/lib/jquery-1.10.2.min.js"></script>
	
	<script src="../js/lib/classie.js"></script>
	<script src="../js/lib/sidebarEffects.js"></script>
	<script src="../js/custom.js"></script>
</body>
</html>
&#13;
&#13;
&#13;

0 个答案:

没有答案
相关问题