Jump to content

HTML form action


lucerias

Recommended Posts

The idea below is when the user key in the customer information, and it will save into the database, but i can't understand how the save transaction can be done. From what i know, this.form.action.value='Save' is used to save the form information but it doesn't specify where to save, and i have check the verify function, it has no relationship with database transaction. Can you guys help me to identify the reason why save can trigger database transaction? Thank you.

[code]<form name="Customer" method="POST" ENCTYPE="multipart/form-data" action="customer.php">
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>

<td><input title="SAVE_BUTTON_TITLE}" accessKey="{SAVE_BUTTON_KEY}" class="button" onclick="this.form.action.value='Save'; return verify(Customer)" type="submit" name="button" value="  {SAVE_BUTTON_LABEL}  " ></td>

</tr>
</table>
[/code]

Link to comment
https://forums.phpfreaks.com/topic/27055-html-form-action/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.