in reply to Re^3: Passing form parameters same CGI page
in thread Passing form parameters same CGI page

Poj & Preceptor

Thanks for your input. I am using strict & warnings now. I have also put placeholders. That brings no change or warnings to what i was already getting. About using 'get', yes that have been helpful as it updates my url with action=Update or Delete in place of search.. but it looses all the other parameters. My url gets truncated from : http://localhost/cgi-bin/PROJECT/sqlconfig.cgi?lname=&fname=&phone=&email=&address=&zip=&lname1=Puma&fname1=Matthew&action=Search

to

http://localhost/cgi-bin/PROJECT/sqlconfig.cgi?action=Update

However, if I manually replace action=Search with Delete or Update, it utilizes the functions. So my basic need is to just be able to pass all the parameters with 'get'. Any ideas?

  • Comment on Re^4: Passing form parameters same CGI page

Replies are listed 'Best First'.
Re^5: Passing form parameters same CGI page
by Preceptor (Deacon) on Jul 08, 2013 at 21:57 UTC

    That has just revealed what is _actually_ happening. You have created multiple forms and the one you are submitting has no input fields. The way I can think of to handle this is, INPUT TYPE=HIDDEN, and start the form before the search results. (Fixing the invariant fields, and prepopulating the ones which can be changed).