将信息传递到php页面 [英] passing information in to php page

查看:63
本文介绍了将信息传递到php页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在此代码中有信息

I have information in this code

<form action="action_page.php">


First name:<br>
<input type="text" name="firstname" value="Mickey">
<br>
Last name:<br>
<input type="text" name="lastname" value="Mouse">
<br><br>

<input type="radio" name="sex" value="male" checked>Male
<br>
<input type="radio" name="sex" value="female">Female
<br><br>
<input type="checkbox" name="vehicle" value="Bike">I have a bike
<br>
<input type="checkbox" name="vehicle" value="Car">I have a car 
<br><br>

<input type="submit" value="Submit">
</form>





cl时我需要代码ick on submit将这些信息发送到php的页面,在此之前检查是否有任何此字段未在此情况下检查返回消息,如请填写所有选项如何执行此操作



I need code when click on submit send these information to page of php and before this check if any of this field not checked in this case return message like "please fill all options " how can do this

推荐答案

你知道get / post吗?没有什么专门针对PHP。
Do you know about get/post? Nothing specifically to PHP.


开始阅读:

1. PHP 5表格处理 [ ^ ]

2. JavaScript表格验证 [ ^ ]
Start reading:
1. PHP 5 Form Handling[^]
2. JavaScript Form Validation[^]


这篇关于将信息传递到php页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆