Newbie question about forms and submitting
Posted: Fri Mar 21, 2008 9:04 pm
Hello peeps,
My first post in this forum is going to be a relatively simple one I believe.
I got a piece of code similar to this:
My problem is as follows. I haven't touched HTML +++ for years, and I really can't figure out how to generate the correct form url here. What i want is to end up with "do.php?id=0", "do.php?id=1" etc. by selecting from the list, and then clicking the button. But I can't seem to even get a do.php url... And is it possible to only submit the form, and not reloading or linking to new page?
I really hope someone can just explain this really quick.
Thanks in advance,
Øyvind
My first post in this forum is going to be a relatively simple one I believe.
I got a piece of code similar to this:
Code: Select all
<form title="xxx" action="do.php" method="GET" name="xxx" id="xxx" selected="true">
<fieldset>
<div class="row">
<label><?php echo( $cmd ); ?></label>
<a class="button" href="do.php?id=<?php echo($id);?>">Toggle</a>
</div>
<?php $id++; } ?>
</fieldset>
<fieldset>
<div class="row">
<select name="id class="date">
<option value="0">Select source
<option value="1">xxx
<option value="2">xxx
<option value="3">xxx
<option value="4">xxx
<option value="5">xxx
<option value="6">xxx
<select>
</div>
</fieldset>
<a type="submit" href="#">Select source</a>
</form>I really hope someone can just explain this really quick.
Thanks in advance,
Øyvind