[ic] actionmap and mv_nextpage in forms

Doug Alcorn doug at lathi.net
Mon Aug 25 21:23:06 EDT 2003

I've setup an actionmap (which I think are a great way make urls look
readable) that uses a url something like
"foo/12332234/bar/456464646".  Basically I'm trying to relate two
different types of products together in a single page.  I know the
actionmap works because I can type in the url and the page loads just
as I'd expect it to.  I verified that the path is being parsed
correctly and the page is interpreting the results just like I want.

The foo product is actually related to a group of bar products.  What
I'm trying to do is have a page the details the relationship between a
single foo product and a single bar product.  However, I want to have
a drop down list that allows the shopper to change the bar product.
Here's what I have so far:

<form action="[area process]">
  <input type="hidden" name="mv_todo" value="refresh" />
  <select name="mv_nextpage" onchange="this.form.submit();">

    [query type=list prefix=bar sql="select id, display_name from bar where foo='[scratch foo_code]'"]

       <option value="foo/[sql-param code]/bar/[bar-param id]">[bar-param display_name]</option>


  <input type="submit" value="Switch Bar">

What happens is I get "Sorry, the page (foo/20400/bar/21508608) was
not found".  As I said earlier though,
http://localhost/catalog/foo/20400/bar/21508608 loads just fine.
 (__) Doug Alcorn - Unix/Linux/Web Developing
 oo / PGP 02B3 1E26 BCF2 9AAF 93F1  61D7 450C B264 3E63 D543
 |_/  mailto:doug at lathi.net http://www.lathi.net
      mailto:tarpit at lathi.net is a spam trap

More information about the interchange-users mailing list