I have a very basic question about PHP. So, there is index.php that includes a form. This form contains input field field1:
index.php
<div id="container1">
<form name="optform" method="post" action="processing.php">
<div class = "box">
<label for="field1"><span>Bla bla bla:</span></label>
<input type="text" class="input-text" value="5" size="11" maxlength="11" name="field1" id="field1">
</div>
<br/>
<div class="buttons">
<a href="" class="regular" onclick="click_function();return false;">Run</a>
</div>
</form>
</div>
<div id="container2">
</div>
<script language="javascript">
function click_function() {
$('#container2').load('processing.php');
}
</script>
I need to use the value from field1 in another PHP file called as processing.php. So, how can I read this value from processing.php? Should I do something like this in processing.php:?
processing.php
$field1value = $_POST["field1"];