Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling PLSQL Stored Procedure From HTML Form Submit Button

798021Sep 16 2010 — edited Sep 17 2010
Hi there,

I am having a little difficulty with calling a stored procedure using an html form button. Here is the code I have right now...
HTP.PRINT('<form action=ZWGKERCF.P_confdelete>');
HTP.PRINT('<input type=''submit'' value='' Yes '' onClick=''document.getElementById("mypopup").style.display="none"''>');
HTP.PRINT('</form></div>');
Here is the issue - I need to find a way to pass variables to this stored procedure so it know what data to operate on. This stored procedure will delete data for a specific database record and I must pass three variables to this procedure to make it work.

Lets call them class_number, term, conf These three variables will be passed and the data will be deleted and the person will see a confirmation screen once the delete query has been executed.

So ideally I would want: ZWGKERCF.P_confdelete(class_number, term, conf) and then the stored procedure would handle the rest!

Seems pretty simple but I am not sure how to make this happen... My thoughts were:

Pass the data to this html form (the three fields I need) in hidden variables. Then somehow pass these using POST method to the procedure and read using GET?

Can someone clarify what the best way to do this is? I have a feeling its something small I am missing - but I would really like some expert insight :-)

Thanks so much in advance!

- Jeff
This post has been answered by Sven W. on Sep 17 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 15 2010
Added on Sep 16 2010
3 comments
5,854 views