| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2200 人关注过本帖
标题:怎么用php把这段html表单内容写入数据库
只看楼主 加入收藏
多新新
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2019-12-24
收藏
 问题点数:0 回复次数:1 
怎么用php把这段html表单内容写入数据库
怎么用php把这段html表单内容写入数据库
代码如下:<form action="register.php" enctype="multipart/form-data" method="post">               
<input type="text" Name="userName" placeholder="userName" required="">            
    <div class="radio-btns agileits w3layouts">                    
<div class="cc-selector wthreeselector">                    
    <p>sex</p>                    
</div>                    
<div class="cc-selector wthreeselector">               
        <input id="visa" type="radio" name="credit-card" value="visa">               
        <label class="drinkcard-cc visa" for="visa"></label>               
    </div>               
    <div class="cc-selector wthreeselector">                    
    <input id="mastercard" type="radio" name="credit-card" value="mastercard">            
    <label class="drinkcard-cc mastercard" for="mastercard"></label>            
        </div>            
    </div>            
    <div class="wthreedob">               
    <input name="interests[]"  class="date agileits w3layouts" id="datepicker1" type="checkbox" value="Date" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = '';}" required="">        
        </div>            
    <input class="fill email" type="text" name="Email" placeholder="Email" required="">                        
        <input class="fill tel" name="Phone" placeholder="Phone" required="">        
        <input type="password" Name="password" placeholder="password" required="">        
        <input type="text" Name="confirmPassword" placeholder="confirmPassword" required="">        
        <div class="send-button wthree agileits">        
        <input type="submit" value="Sign Up">                                </div>            </form>
搜索更多相关主题的帖子: class input type Name div 
2019-12-24 16:44
fulltimelink
Rank: 8Rank: 8
等 级:蝙蝠侠
威 望:7
帖 子:171
专家分:752
注 册:2020-4-1
收藏
得分:0 
addslashes或者mysql_real_escape_string  + htmlspecialchars
2020-04-10 17:47
快速回复:怎么用php把这段html表单内容写入数据库
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026525 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved