Posted by Colin McKinnon on 11/02/53 11:18
Lee David wrote:
<snip>
> <form method="post" action="SQL_Notice.php?act=Change&pass_id=">
> <input name="postaction" type="hidden" value="selectnotice">
> <table align="left">
> <tr>
> <td align="center" width="50%">
> <select name="noticechange" size="4">
> <option value="2005-06-03 12:06:11Dave"> Dave 2005-06-03 12:06:11
> <option value="2005-06-03 03:06:44Dave"> Dave 2005-06-03 03:06:44
> <option value="2005-06-03 03:06:18Dave"> Dave 2005-06-03 03:06:18
> <option value="2005-06-03 02:06:54Dave"> Dave 2005-06-03 02:06:54
> <option value="2005-06-03 02:06:01Dave"> Dave 2005-06-03 02:06:01
> </select></td>
> <td align="right">
> <br><br>
> <input name="submit" type="submit"><br><br></td></tr>
> </table>
> </form>
>
> The "&pass_id=" should have the value selected, but I'm not sure how to
> get
> it into there or if that is even the right way to be looking at it.
If I've understood you correctly...
Just print it into the action part - however, since you're using a POST
method to send the remaining data it'd be a lot neater to send this in the
same way:
<form method="post" action="SQL_Notice.php">
<input type='hidden' name='act' value='Change'>
<input type='hidden' name='pass_id' value='<?php
print $_REQUEST['pass_id']; ?>'>
<input name="postaction" type="hidden" value="selectnotice">
Also, you should have '</option>' at the end of each option.
>
> $pass_id should have a date followed by a space followed by a user id. I
> parse that in "Change.inc" or "Delete.inc" to break it into the AddDate
> value and the user ID value.
But that's the information that is *returned* in noticechange...it's not
known when you generate the page.
+++Out of cheese error+++
Redo from start
C.
Navigation:
[Reply to this message]
|