Reputation: 339
mistake was as follow. if you notice the name of the input field in the form is zipcode and in the dynamic script in this case php I was calling it as 'zip' instead of 'zipcode' Thank you guys
if ($_POST['parse_var'] == "editform"){
$zip = $_POST['zip'];
}
<form method="post" enctype="multipart/form-data>
<td><input name="zipcode" type="text" class="formFields" id="zipcode" value="<?php print "$zip"; ?>" size="32" maxlength="24" /></td> <td><p><br />
<input name="parse_var" type="hidden" value="editform" />
<input type="submit" name="Submit3" value="Submit Form" />
</p></td>
</form>
Upvotes: 0
Views: 84
Reputation: 360702
Where is $id
being set? None of your code seems to actually set it, so most likely your query is coming out to
UPDATE .... WHERE category_id=''
That's a valid query, but probably doesn't match anything in your database. That's NOT an error condition, it's just a query that happens to match nothing.
Upvotes: 1