我想删除以“。”分隔的数字之间的任何空格。或“,”
例如:10,45,3应该是:10,45,3 和10。 45。 3应该是:10.45.3在正则表达式中有任何帮助吗?
答案 0 :(得分:1)
使用<div>
<label for="create-password">Create Password</label>
<input id="create-password" type="password" placeholder="Atleast 6 characters" name="password" required>
</div>
<div>
<label for="confirm-password">Confirm Password</label>
<input id="confirm-password" type="password" placeholder="Atleast 6 characters" name="confirmPassword" required>
</div>
你应该可以做到
$password = $_POST['password'];
$confirmPassword = $_POST['confirmPassword'];
if($password != $confirmPassword)
echo "Passwords do not match";
&#13;