Rihn
Posts: 6
|
Posted: 04/06/2004, 11:07 AM |
|
I have a form that receives values from a program, I would like to submit the values to sql before the user see them, then display an update form with the ItemId from sql and additional values.
_________________
Harold Rihn |
|
|
Langston
|
Posted: 04/09/2004, 6:43 PM |
|
Did you try creating the field on your form as "hidden"? If you need to display results based on this field you may try adding a separate field on your form (displayed) and add code in an "After Update" event.
|
|
|
RonB
Posts: 228
|
Posted: 04/11/2004, 4:16 PM |
|
Yes create two seperate pages. 1 to handle the data from the program and one to show the form.
On the first page just catch the variables send by the program, asuming the program output is to url (somepage.php?variable1=value&variable2=value etc.
use the CCGetparam() function to "catch" the variables and use them in a query:
$sql= "insert into table(field1,field2) values(" .CCGetParam("variable1","") ."," .CCGetParam("variable2","") .")";
use the redirect function to redirect to the second page after the insert has finished.
|
|
|
|