Re: Forms problem

Peter,

> We very much want to use your well-thought-out GUI in Amaya and in
> trying to do so we ran into a problem.  To illustrate
> the problem, we have put a simple little script at
> physnet2.pa.msu.edu/two-forms.html .  Netscape handles it OK, giving
> updated times even if the same button is pressed twice in succession.
> Amaya updates the time only when the buttons are
> pressed alternately.  In addition, the button value is missing in
> Amaya's forms submission.  These are handled OK by
> Navigator.  Any help you can provide would be greatly appreciated!
>

One problem seems to be with your script. You're using an nph script.
This type of script should not only send back the HTML reply, but also
the HTTP headers. Try to use a non nph script to see the difference.

I don't know if it's planned, but your ACTION element points to
http://physnet2,  rather than http://physnet2.pa.msu.edu.
This only means that people from outside your domain can't directly call
the script.

Could you tell me if it works better once you make those changes?

I'm able to make your form work against my apache 1.3.4, using the
printenv script included in the Apache dist.

Thanks,

-Jose

=========================
Transaction:

telnet physnet2.pa.msu.edu 80
Trying 35.8.247.219...
Connected to physnet2.pa.msu.edu.
Escape character is '^]'.
POST /dev/nph-two-replies HTTP/1.1
Accept: */*
Accept-Encoding: deflate
TE: trailers,deflate
Expect: 100-continue
Host: tuvalu:5050
User-Agent: amaya/V1.5 libwww/5.2.3
Connection: TE,Keep-Alive
Date: Tue, 09 Feb 1999 18:23:37 GMT
Content-Length: 16
Content-Type: application/x-www-form-urlencoded
 
HTTP/1.1 100 Continue

test=Submit+This
<HTML>
 You chose the button:. Submit This. It is now 13:24 and 34 seconds.
 
 <HR><body>
<FORM METHOD="POST" ACTION="http://physnet2/dev/nph-two-replies">
<p><input type=submit name="test" value="Submit This"></p>
</FORM>
<FORM METHOD="POST" ACTION="http://physnet2/dev/nph-two-replies">
<p><input type=submit name="test" value="Submit That"></p>
</FORM>
</body>
</HTML>Connection closed by foreign host.

Received on Tuesday, 9 February 1999 13:41:27 UTC