[ic] Issues with Value tag

Edward Maas maase at brainlink.com
Tue Sep 2 03:56:30 EDT 2003


List,

    I think i might be doing something wrong here but let me throw this 
issue out to the group at large.  I have completed a simple email 
response form based on an example i found in the mailing list archives.  
I think I have found a bug that is starting to drive me nuts.  The basic 
issue is that after submitting the form, if there is an error, it is 
properly prompted, but the data that was entered is lost.  If anyone has 
any idea what might fix this, Iwould be extremely greatful.  Below are 
the specs and code samples:

Linux 2.4.x
Mysql
Interchange 4.8.7

note: the proper order route has been made for the required fields.
Code: contact_form.html

<form action="[process-target]" method=post>
<input type=hidden name=mv_session_id value="[data session id]">
<INPUT TYPE=hidden NAME=mv_doit VALUE=return>
<INPUT TYPE=hidden NAME=mv_nextpage VALUE=@@MV_PAGE@@>
<INPUT TYPE=hidden NAME=mv_form_profile VALUE=submit_query_profile>
<input type="hidden" name="mv_todo" value="set" >
<INPUT TYPE=HIDDEN NAME=mv_check    VALUE="send_contact">

[set send_contact]
  [email
  to="maase at brainlink.com"
  subject="Interchange Feedback: [value feedback_subject]"
  from="[value email]"
  ]

Subject: [value feedback_subject]
   From: [value fname] [value lname]
  Email: [value email]

Message
--------
[value feedback_message]

[/email]
[value name=sent set=yes hide=1]
[/set]

[if type=explicit compare="[error all=1 show_var=1 keep=1]"]
 <font color=__CONTRAST__>There were errors in your last submission.</FONT>
     <ul>
     <li>[error all=1 show_var=1 show_error=1 keep=1 joiner="<br><li>"]
    </ul>
  The areas that need correction are shown in <FONT 
COLOR=__CONTRAST__>this color</FONT> below.</FONT><br><br>
[/if]

[if base=value term=sent op="=~" compare="/yes/"]
Thank you, your message has been sent.
[value name=sent set=no hide=1]
[value name=feedback_subject set="" hide=1]
[value name=feedback_message set="" hide=1]
[else]

        <table border="0" cellspacing="0" cellpadding="0" align="center" 
width="100%">
          <tr class="contentbar2">
            <td align=right> [error name=fname std_label="First Name" 
required=1]
            </td>
            <td>
              <INPUT MAXLENGTH=35 NAME=fname type=text size=25 
value="[value fname]">
            </td>
          </tr>
          <tr class="contentbar2">
            <td align=right> [error name=lname std_label="Last Name" 
required=1]
            </td>
            <td>
              <INPUT MAXLENGTH=35 NAME=lname type=text size=25 
value="[value lname]">
            </td>
          </tr>
          <tr class="contentbar2">
            <td align=right> [error name=email std_label="Email address" 
required=1]
            </td>
            <td>
              <INPUT MAXLENGTH=64 NAME=email type=text size=25 
value="[value email]">
            </td>
          </tr>
          <tr class="contentbar2">
            <td align=right> [error name=feedback_subject 
std_label="Subject"
              required=1] </td>
            <td>
              <INPUT MAXLENGTH=35 NAME=feedback_subject type=text 
size=25 value="[value feedback_subject]">
            </td>
          </tr>
          <tr class="contentbar2">
            <td align=right> [error name=feedback_message 
std_label="Message"
              required=1] </td>
            <td>
              <TEXTAREA WRAP="virtual" ROWS="5" COLS="45" 
NAME=feedback_message>[value feedback_message]</textarea>
            </td>
          </tr>
          <P>
          <tr span="2" class="contentbar2">
            <td align=right colspan="2">
              <INPUT TYPE=SUBMIT VALUE="Send Info">
           </td>
          </tr>
        </table>

[/else]
[/if]

</form>




More information about the interchange-users mailing list