lucerias Posted November 13, 2006 Share Posted November 13, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/27055-html-form-action/ Share on other sites More sharing options...
ToonMariner Posted November 14, 2006 Share Posted November 14, 2006 that belongs in the js section and surely you want to submit the form not save it. Quote Link to comment https://forums.phpfreaks.com/topic/27055-html-form-action/#findComment-124235 Share on other sites More sharing options...
fenway Posted November 15, 2006 Share Posted November 15, 2006 I'm sure I've seen this thread already in another forum.... but I have no idea what setting an ACTION's value would do, anyway. Quote Link to comment https://forums.phpfreaks.com/topic/27055-html-form-action/#findComment-125259 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.