如何从h1获取值以使用php选择数据

时间:2017-07-20 07:49:11

标签: php html

当lblAngka< = 100:

时,我想在h3“winText”上打印你好
<div class="jumbotron" >
            <form name="form" action="" method="get">
            <h1 id="lblAngka" name="lblAngka">0</h1>
            <button type="submit" class="btn btn-lg btn-success" id="btnBerhenti" disabled>Berhenti</button> 
            <h3 id="winText" disabled>sadasd<?php 
            if (isset($_GET['lblAngka'])){
                 if ($_GET['lblAngka'] <= 100)
                    echo "hello";
            }
            ?></h3>
            </form>
        </div>

1 个答案:

答案 0 :(得分:0)

将字符串转换为整数:

import React from "react";
import {render} from "react-dom";

class App extends React.Component{
   render(){
    return(    
      <div>
            <h1>Hello</h1>
      </div>
    );
   }
}
render(<App/>,window.document.getElementById("app"));

   @ multi (webpack)-dev-server/client?http://localhost:8082 ./src/app/index.js