我有我的index.php文件下面的代碼 <?php
$name = $_GET['name'];
$id = rand(0,100); // i need a unique id from the name than random
?>
我想要做的是,當有人提供他們的姓名,0和100之間的唯一數字ID應該顯示。刷新頁面後不應更改。如果用戶提供名稱「John」,id應該是「99」(或任何
我想要做的事情應該很簡單。 我想將一些表單值發佈到返回JSON的mvc控制器。 如果我成功了,我會顯示一個彈出窗口,如果我弄錯了,我會顯示另一個彈出窗口。 但在控制檯中我得到兩個錯誤: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end u