Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
フォームを使用せずに、PHP 内に画像ボタンを配置したいだけです。
私は単純にそれをしました:
<input type="image" src="/images/buttons/button.gif"/>
それで、それに関数を追加する方法はありますか? 画像ボタンをクリックして、ページを別のページにリダイレクトしたいだけです。
また、他に方法があれば教えてください。
(私はPHPが初めてで、約1か月前に学習を開始しました)
ありがとう。
別のページにリダイレクトするだけの場合は、画像をリンクとして使用します。
<a href="another_page.php"><img src="/images/buttons/button.gif"/></a>
あなたはそれをハイパーリンクで包むことができます:
<a href="pageToGoTo.php"><img src="/images/buttons/button.gif" /></a>