[prev in list] [next in list] [prev in thread] [next in thread]
List: php-db
Subject: Re: [PHP-DB] get form value javascript
From: Giff Hammar <ghammar () sv-phoenix ! com>
Date: 2011-05-16 12:33:46
Message-ID: 1305549226.2190.1.camel () ghammar-2000
[Download RAW message or body]
You might want to consider using a session variable to pass values from
page to page, particularly if there are a lot of data to pass.
Giff
On Sun, 2011-05-15 at 19:14 +0200, italghana wrote:
> Please can someone help me.
>
> I have a dynamic table with a form having a link that should be submitted
> via <a href="javascript:allaquint('.$rows['userName'].');">
>
> Contact user </a>.
>
> I want to get the user name passed to another page.
>
> This is my code:
>
>
>
> <script language="javascript">
>
> function app(name){
>
> document.mio.name.value=name;
>
> document.mio.submit();
>
> }
>
> </script>
>
> </head>
>
>
>
> <body>
>
> <table border="0" cellpadding="2" cellspacing="2">
>
> <tr>
>
> <td>Name</td>
>
> </tr>
>
> <?php do { ?>
>
> <tr>
>
> <td><form id="mio" name="mio" action="dataPro.php">
>
> <input name="name" type="hidden" value="<?php echo
> $row_yab['loginName']; ?>" /><?php echo $row_yab['loginName']; ?><a
> href="javascript:app(<?php echo $row_yab['loginName']; ?>);">Send
> Message</a>
>
> </form></td>
>
> </tr>
>
> <?php } while ($row_yab = mysql_fetch_assoc($yab)); ?>
>
> </table>
>
> </body>
>
> </html>
>
> Any help will be appreciated!
>
>
>
>
>
>
>
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic