I am a total noob at php and I am creating a basic wordpress plugin for a site.
I have a function
function My_Function_2() {
?>
Then I have an input inside a div coming from an options page:
<form method="post" action="options.php">
<?php wp_nonce_field('update-options'); ?>
Define Box height
<table width="350">
<tr valign="top">
<th width="200" scope="row">Enter Box Height</th>
<td width="50">
<input name="Box_height" type="text" id="Box_height"
value="<?php echo get_option('Box_height'); ?>" />
(ex. 400)</td>
</tr>
</table>
But when I try to $box_height to use in a url later on, it doesnt work.
If I set box_height to a value using an array it works. So I think I need to make the input variable into a Global Variable somehow?
Sorry if I havent made this very clear, im not very well experienced