来自卡加延德奥罗的学生 [英] student from cagayan de oro
本文介绍了来自卡加延德奥罗的学生的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所有人的祝福,
你能帮我吗?
我想使用php制作提交表单信息".
您能给我代码,网站或项目吗?
请你能帮帮我吗?:(
OP更新:
这是代码:
这是我的第一个表格
Good day to all,
Can you help me?
I want to make a ''submit form information'' using php.
Can you give me a code, sites or a project build?
Please can you help me?:(
UPDATE from OP:
here is the code:
this is my first form
<html>
<head>
<title>Submitting Form Information</title>
</head>
<body>
<form name="html" action="ex1output.php" method="post">
<table border=5 cellspacing=0 cellpadding=3>
<tr><td>
Customer's Name:
<td>
<input type="text" name="name">
<tr><td>
Item Bought:
<td>
<select name="item">
<option >Grocery Package 1</option>
<option >Grocery Package 2</option>
<option >Grocery Package 3</option>
<option>Grocery Package 4</option>
</select>
<tr><td>
Quantity:
<td>
<input type="text" name="quant">
<tr><td>
Mode of Payment:
<td>
<input type="radio" name="rad1"><FONT SIZE=3>Cash</FONT></input>
<input type="radio" name="rad2"><FONT SIZE=3>Credit Card</FONT>
<input type="radio" name="rad3"><FONT SIZE=3>Cash On Delivery</FONT>
<tr><td>
Discount Types:
<td>
<input type="checkbox" name="check1" value=1><FONT SIZE=3>Senior Citizen</FONT>
<input type="checkbox" name="check2" value=2><FONT SIZE=3>Membership Card</FONT>
<input type="checkbox" name="check3" value=3><FONT SIZE=3>Photo Values</FONT>
<tr><td colspan=2 align=right>
<input type="reset" value="Reset">
<tr><td colspan=2 align=left>
<input type="submit" value="Submit">
</table>
</form>
</body>
</html>
这是我的第二种形式:
and this is my second form:
<html>
<head><title>Output</title>
</head>
<body>
<?php
$name= $_POST[name];
$Item = $_POST[item];
$quant= $_POST[quant];
if($_POST['item'] == 1){
$_POST['item'] = 'Grocery Package 1';
}else if($_POST['item'] == 2){
$_POST['item'] = 'Grocery Package 2';
}else if($_POST['item'] == 3){
$_POST['item'] = 'Grocery Package 3';
}else if($_POST['item'] == 4){
$_POST['item'] = 'Grocery Package 4';
};
?>
<table border=10 cellspacing=0 cellpadding=3>
<tr><td width="78">Name
<td width="262">
<?=$name;?>
<tr><td>Item Bought
<td>
<?=$Item;?>
<tr><td>Quantity
<td>
<?=$quant;?>
</table>
</body>
</html>
能帮我连接这些
can you help me to connect these
$name= $_POST[name];
$Item = $_POST[item];
$quant= $_POST[quant];
它无法显示我的form1的输出..
还能帮我连接到数据库吗?
谢谢!!
It can''t show the output of my form1..
and also can your help me to connect to the database?
THANK you!!!
推荐答案
名称 =
name=
_POST [name];
_POST[name];
项目
Item =
这篇关于来自卡加延德奥罗的学生的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文