You are here: Re: Form passing data question « PHP Language « IT news, forums, messages
Re: Form passing data question

Posted by Colin McKinnon on 11/09/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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация