I want to take the value from a text box in one from and then use that value in another form - basically I want to use the 'compname' to add a company (top form), but use the same field to delete a company (bottom form)
I have read up on using post and get into variables but don't know if this is the right approach.
thanks for your guidance!
<div id="left">
<div class="leftpost">
<h2 class="title"> Company details </h2>
<div class="entry">
<form action="company_add.php" method="get">
<p>Name:<br /><input name="compname" type="text"></p>
<p>Address:<br /><input name="compaddress" type="text"></p>
<p>Description:<br /><input name="compdescription" type="text"></p>
<p>Website:<br /><input name="compwebsite" type="text"></p>
<input name="Save" type="submit" value="Save">
</form>
</div>
</div>
<div class="leftpost">
<form action="company_delete.php" method="get">
<input name="Delete" type="submit" value="Delete">
</form>
</div>
</div>