Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.