why aren't i passing this parameter to the next page

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
each page is a Python program -=3D they communicate by passing parameters
appended to the URL - I'm trying to pass  ZID, but in this case, no
parameter is being passed.    The passing of parameters work up to this

thanks for your help.


<h1>Update A Zinger </h1>
       <form action=3D"do_update.cgi"
       <input type=3D"hidden" name=3D"zid" value=3D"319">
       <table width=3D"640" border=3D"0" cellpadding=3D"2" cellspacing=3D"3=
       <td valign=3D"top">zid:</td>

       <td valign=3D"top">Keywords:</td>
       Ctrl+Click to select multiple keywords<br>
       <select multiple size=3D"5" name=3D"keywords">
       <option value=3D'aBQN'>Aguadilla, PR (BQN)
            <option value=3D'aAUA'>Aruba (AUA)
            <option value=3D'aAUS'>Austin, TX (AUS)
            <option value=3D'aBDA'>Bermuda (Hamilton), BM (BDA)
            <option value=3D'aBOS'>Boston, MA (BOS)
            <option value=3D'aBUF'>Buffalo, NY (BUF)
            <option value=3D'aBUR'>Burbank, CA (BUR)
            <option value=3D'aBTV'>Burlington, VT (BTV)
            <option value=3D'aCUN'>Cancun, Mexico (CUN)
            <option value=3D'aCLT'>Charlotte, NC (CLT)
            <option value=3D'aORD'>Chicago, IL/O=E2=80=99Hare (ORD)
            <option value=3D'aCMH'>Columbus, OH (CMH)
            <option value=3D'aDEN'>Denver, CO (DEN)
            <option value=3D'aFLL'>Ft Lauderdale, FL (FLL)
            <option value=3D'aRSW'>Ft Myers, FL (RSW)

       Add New Keyword(s): <input type=3D"text" name=3D"new_keywords"
size=3D"80" value=3D"">
       Separate new keywords with a semi-colon, e.g. "First Keyword;
Second Keyword; etc"
       <td valign=3D"top">Source:</td>

       <td><textarea cols=3D"80" rows=3D"5"
name=3D"citation">=C3=A2=E2=82=AC=C5=93Agriculture in Crisis,=C3=A2=E2=82=AC=C2=9D <i>Rethinking US
Agricultural Policy: Changing Course to Secure Farmer Livelihoods

Worldwide</i>, September 2003, 9
       <td  valign=3D"top">Quotation:</td>
       <td><textarea cols=3D"80" rows=3D"5" name=3D"quotation">In 2001,
government payments to farmers amounted to an astounding 47 percent of
farmer income, up from about 20 percent in the 1990s. Despite this
enormous infusion of cash, farmer income declined steadily during the
same period, and many US farmers are under increasing financial stress.

       <td><input type=3D"submit" name=3D"updatebutton"
       <td align=3D"right"><input type=3D"submit" name=3D"deletebutton"
value=3D"Delete this entry"></td>
       <form action=3D"display.cgi"
       <input type=3D"submit" value=3D"Cancel">


Re: why aren't i passing this parameter to the next page

ronrsr wrote:
Quoted text here. Click to load it

<snip html>

You have two forms in your code, one via POST to "do_update.cgi" and the
other GET to "display.cgi". Are you expecting to use one to set some
value and the other to somehow retrieve it? If so you are fundamentally
misunderstandings how the process works.

The first form that POSTs to "do_update.cgi" would send the value of
fields "zid", "keywords", "new_keywords", "quotation", "updatebutton",
and "deletebutton" within attached content and retrieved via an
environmental variable. The "do_update.cgi" script would have to process
this info and unless the script passes on info in another form or
records it in some sort of a database the values will be lost.

GET is for GETting some resource on the server, example a URL of a web
page, image, file, etc. There are no named fields in your second form so
*no* values would be passed to "display.cgi"! With GET forms the named
fields are passes via the query string in name-value pairs that are
appended to the URL, e.g.,


In you example, "display.cgi" will receive *no information* and will
have no idea what you did with "do_update.cgi" and your "zid".

Looks like you need to do a little research on how CGI works....

Take care,


Site Timeline