Internal error, yaws code crashed

Chaitanya Chalasani chaitanya@REDACTED
Mon Mar 20 09:44:36 CET 2006


Dear All,

Since couple of days ago I have started to test yaws for our OTA based VAS 
solutions and wanted to try the same in the web browser. the following is the 
code I wrote for form page.( I am very bad in html ).

<html>
<body>
<form method="POST" action="/MobileDating/searchpost.yaws">
<h2>Search</h2>

<h3>Age</h3>

<input type = "radio" name = "radio1" id = "rd1" checked> Younger </input>
<input type = "radio" name = "radio1" id = "rd2"> Similar </input>
<input type = "radio" name = "radio1" id = "rd3"> Older </input>
<input type = "radio" name = "radio1" id = "rd4"> Doesn't matter </input>

<h3>Gender</h3>
<input type = "radio" name = "radio2" id = "rd1" checked> Male </input>
<input type = "radio" name = "radio2" id = "rd2"> Female </input>
<input type = "radio" name = "radio2" id = "rd3">Both </input>

<h3>Location</h3>
<input type = "radio" name = "radio3" id = "rd1" checked> Home City </input>
<input type = "radio" name = "radio3" id = "rd2"> Doesn't matter </input>

<h3>Nickname</h3>
<input name="Nickname" type="text" size="48" />

<p><input type="submit" /></p>
</form>
</body>
</html>

The searchpost.yaws code is like this 

<erl>

out(A) ->
    {ehtml,
     {p, [],
      yaws_api:parse_post(A)}}.


</erl>

But I get the following error in the erlang console.

=ERROR REPORT==== 20-Mar-2006::14:05:04 ===
<pre>
{badarg,[{erlang,atom_to_list,["radio1"]},
         {yaws_api,ehtml_expand,1},
         {yaws_api,ehtml_expand,1},
         {yaws_api,ehtml_expand,1},
         {yaws_server,safe_ehtml_expand,1},
         {yaws_server,handle_out_reply,5},
         {yaws_server,deliver_dyn_part,8},
         {yaws_server,aloop,3}]}
 </pre>

Thanks in advance.


-- 
Chaitanya Chalasani
Team Lead - Technical
Pyro Networks Pvt Ltd



More information about the erlang-questions mailing list