請問怎麼讓button連結到網頁
大家好 上次的button問題謝謝大家幫忙
我這次又遇到button的問題
拜託幫幫忙
index.php 裡的php如下
<?
$index = 1
echo "<form method=/"GET/" action=/"answer.php/"><input type=/"submit/"
value=/"Hint/"></form>";
?>
answer.php 如下
<?
function answer($index)
{
return $index
}
echo answer($index)
?>
我希望Hint按鈕連結到www.mydomain.com/me/answer.php
可是每次他都連結到www.mydomain.com/me/index.phpanswer.php
請問這到底該怎麼辦......
另外請教一下
有沒有辦法當我按下Hint按鈕時, 把$index從index.php傳到answer.php裡面
感謝各位的幫忙~~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 75.170.91.140
推
03/09 14:49, , 1F
03/09 14:49, 1F
→
03/09 14:51, , 2F
03/09 14:51, 2F
→
03/09 14:51, , 3F
03/09 14:51, 3F