> <FORM METHOD="post" NAME="gateway"
> ACTION="/alumni/aluminpt/?action=create&topic=">
> <? if ($action == 'create') { ?>
> <H3>Graduation Year:</H3>
> <SELECT NAME="gyear" onChange="calcTop>
> <OPTION
> <? if (!$gyear) echo ' selected'; ?>>NA
> </option>
> <? for ($i = 429; $i < 535; $i++) {

Although the topic numbers appear sequential, you can't rely on them being
so. Best to use the topic listing functions.

> echo '<option value="', $i, (($gyear = $i + 1471) ? '" selected>' : '">'),
> $gyear, '</option>'; } ?>
> </SELECT>
> </P>
> <? if ($action == 'create') { ?>
> <INPUT TYPE="submit" NAME="&(action);" VALUE="Submit">
> <INPUT TYPE="reset" VALUE="Reset">
> <? } ?>
> <? } ?>
> </form>

> This is what I've come up with so far, the midgard topic numbers are all
> seqential and there are a set number of them, but I can't see how to get
> the topic number (the numbers between 429 and 535) to end up in the form
> action tag without some sort of javascript, in which case, is there some
> way to trade variables to javascript?

<FORM METHOD="post" NAME="gateway"
ACTION="/alumni/aluminpt/?action=create&topic=&(php_variable_name_here);">

The &(varname); construct will work anywhere in HTML.

Emile


--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org

To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]

Reply via email to