Re: [請益] 請問如何把table中的文字submit
※ 引述《alanliu ()》之銘言:
: <form action='next.php' method='post'>
: <table>
: <tr>
: <td>abcd</td>
<td>
<input type="text" style="border: 0px" value="abcd" readonly="readonly"/>
</td>
如果資料剛好要顯示、並且要能傳遞到下個 next.php
其實可以用類似上面這種方式,用 html 的屬性混搭 css 樣式
將資料放進 <input> 或 <textarea> 傳遞資料。
這樣可以省掉產生額外的 <input type="hidden"> 的標籤 :)
: </tr>
: </table>
: <input type='submit'>
: <form>
: 請問在上面的格式中,如何把abcd透過sumit按鈕,傳到下一個next.php頁面中呢?
: abcd是純文字....
: 謝謝,懇請各位高手幫忙
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.119.199.121
※ 編輯: foxzgerald 來自: 140.119.199.121 (05/14 11:41)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章