0
我有一個表單,我已經創建用作我的插件設置的選項頁面。 但是,當我提交表格時,它沒有被提交。表單沒有在wordpress中提交:
我的表單的代碼如下
<div class="wrap">
<?php echo "<h2>"._('My Plugin Options')."</h2";?>
<form name="my_plugin_form" method="POST" action="<?php echo htmlentities($_SERVER['REQUEST_URI']); ?>">
<input type="hidden" name="img_hidden" value="Y">
<?php echo "<h4>"._('Image Dispaly Options')."</h4>";?>
<p><?php _e("Image Height: "); ?><input type="text" name="img_height" value="<?php echo $height; ?>" size="20"></p>
<p><?php _e("Image Width: "); ?><input type="text" name="img_width" value="<?php echo $width; ?>" size="20"></p>
<p class="submit">
<input type="submit" name="Submit" value="<?php _e('Update Options') ?>" />
</p>
</form>
用於處理表單的代碼也寫在同一個頁面。
如果您知道解決方案,請與我分享。我是wordpress插件開發的初學者。
在此先感謝..