douju8782 2015-07-11 10:44
浏览 56
已采纳

使用bootstrap框架时,php页面无效的表单动作[重复]

This question already has an answer here:

I am using bootstrap to create navigation and mixing html with it to create form but when I am submitting my form the form action in which it should print done showing a blank page . Here in this code when i submitting the form php page is no working it is showing blank page . Please Help

<div class="container">
      <h2>Small Geeks</h2>
      <ul class="nav nav-tabs">
        <li class="active"><a data-toggle="tab" href="#home">Home</a></li>
        <li ><a data-toggle="tab" href="#addscript">Add Script</a></li>


      </ul>

      <div class="tab-content">
        <div id="home" class="tab-pane fade in active">
          <h3>HOME</h3>
          <p>home page
        </div>

        <div id="addscript" class="tab-pane fade">


    <div id="addscriptcontainer">

    <form action="createscript.php"method="POST">

    <input type="text" size="100" id="question"placeholder="Your Program Question"required><br><br>

     <textarea  rows="10" cols="150" wrap="hard"id="program"placeholder="Your Program Here"required></textarea><br><br>


      Select Language:<br>
      <select name="language">
        <option value=1>C</option>
        <option value=2>C++</option>
        <option value=3>Java</option>
        <option value=4>Java Script</option>
      </select>
    <br><br>

    Select Level:<br>  
    <select name="level" >
        <option value=1>Beginner</option>
        <option value=2>Intermediate</option>
        <option value=3>Advance</option>

      </select>
      <br><br>

    <input type="text"  id="name"placeholder="Your Name"required><br><br>

    <button type="submit"value="submit">Submit</button>

    </form>
    </div>

And here is my php page which is given in form action but it is showing a blank page please help

<?php
echo "done";
?>
</div>
  • 写回答

1条回答 默认 最新

  • dongzhang7961 2015-07-11 11:16
    关注

    After your comments on the original post.

    You are using the local storage to access your files, you will need to access your webserver (XAMPP).

    Try using the loopback address in your browser: either http://127.0.0.1/ or http://localhost/

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥20 测距传感器数据手册i2c