473,395 Members | 1,537 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

posting from a form without a submit button - how?

Given something like:

if ( $_POST['type_save'] == 'Save record to HTGI public DB') {
echo '<form method="post" action="populate08.php">';
echo '<input type=hidden name="kw_tarea" value='.$tk.'>';
echo '</form>';
echo '<p>permanent DB updated';
}

But there's no button to press for a submit. So how do I get this code
posted to the action=populate08 ? Without pressing a buttom but just
from the code?

Thanks
Jul 17 '05 #1
2 4051
Hal Halloway wrote:
Given something like:

if ( $_POST['type_save'] == 'Save record to HTGI public DB') {
echo '<form method="post" action="populate08.php">';
echo '<input type=hidden name="kw_tarea" value='.$tk.'>';
echo '</form>';
echo '<p>permanent DB updated';
}

But there's no button to press for a submit. So how do I get this code
posted to the action=populate08 ? Without pressing a buttom but just
from the code?

Thanks


Updating your database without having the user expressly desire
to do so is not a good idea.

Unless you give the user a chance to look over what they have
done before doing a database update or insert and then expressly
approve by pressing a button you significantly increase the
probability of having corrupt data.

Jerry
Jul 17 '05 #2
Jerry Gitomer wrote:
Hal Halloway wrote:
Given something like:

if ( $_POST['type_save'] == 'Save record to HTGI public DB') {
echo '<form method="post" action="populate08.php">';
echo '<input type=hidden name="kw_tarea" value='.$tk.'>';
echo '</form>';
echo '<p>permanent DB updated';
}

But there's no button to press for a submit. So how do I get this code
posted to the action=populate08 ? Without pressing a buttom but just
from the code?

Thanks

Updating your database without having the user expressly desire to do so
is not a good idea.


Good advice and I'm changing my layout and code to reflect it. Thanks!

Unless you give the user a chance to look over what they have done
before doing a database update or insert and then expressly approve by
pressing a button you significantly increase the probability of having
corrupt data.

Jerry

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: wk6pack | last post by:
Hi, I have a problem and not quite how to go about solving it. I have a form written in asp. I wish to submit the form and have the server return back to the same page without actually...
3
by: Itai | last post by:
I have an aspx file named index.aspx which contains two ‘form' sections, one that has the runat=server attribute (e.g From1) and one which is a regular HTML form (e.g SignInForm). I am trying...
8
by: bettina | last post by:
I want to submit a form but without a submit button. That's to say, I want that by giving a definite code in a field and then press <ENTER> the form will be submitted. For Example <form...
10
by: DaveFash | last post by:
Posting variables from an HTML FORM, via the Request.Form function on the receiving ASP page is great. But how can you POST a Form variable to an ASP page -- without a human pushing a Submit...
6
by: varkey.mathew | last post by:
Hi there, I have a basic form with a postback. The following is a line of dynamic code written so that when the user clicks on the Button control, he will receive a confirm messagebox. ...
16
by: Art | last post by:
Can anyone help. I've tried scaling down a script to the bare minimum and it still is not working correctly. What I think should happen is that when the field app_fname is blank, that $hold_chk...
17
by: Johnny BeGood | last post by:
Hi All, Is there a way to post the contents of a form without having to click on the Submit button, i.e <form method="post" action="http://www.whereever.com/ProcessTheData.php"> <INPUT...
18
by: Fester Bestertester | last post by:
Greetings, I'm an occasional php/mysql dabbler. I have a basic data form with a submit button. Unfortunately, it's still possible for the user to enter data changes and close the window,...
1
by: gnawz | last post by:
Hi guys, I have a couple of php files that perform various tasks. I will use fields in my system and provide code as well I need help as follows: My database contains the fields Category...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.