html from action呼叫php function

<body>

<from action=?>

<input type="text" name="test" id="test">

<input type="submit" name="button" id="button">

<from>

<?php

function test($test){

echo "<script> alert("Hello World"); </script>";

}

?>

</body>

1. 有辦法 使用from 的 action 呼叫 php function 嗎?

我是想要把 text 的資料傳送到 function 內做處理

2. 在 php echo 內,可以呼叫 javascript 的 alert 嗎?

或是 PHP 有類式 mesgbox 的視窗 ?

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.