i have my code:
<h2>Services List</h2>
<form method="post" action="<?php echo link_to('New Service','adminservice/new','class=link_medium'); ?>" >
<table class='tbl_admin' width='900px' >
<thead>
<tr>
<th align='left'>Name</th>
<th align='left'>Event Url</th>
<th align='left'>Wap home</th>
<th align='left'>Catcher</th>
<th align='left'>Publish History</th>
<th align='left'>Logo</th>
</tr>
</thead>
<tbody>
<?php foreach ($LpmServices as $LpmService): ?>
<tr>
<td align='left'> <a href="<?php echo url_for('adminservice/edit?id='.$LpmService->getId()) ?>"><?php echo $LpmService->getName() ?></a></td>
<td align='left'> <a href="<?php echo url_for('serviceurl/list?service='.$LpmService->getId()) ?>">Url(s)</a></td>
[COLOR="Red"]<input type="hidden" name="services[]" value="<?php echo $LpmService->getName();?>"/>[/COLOR]
<td align='left'> <?php echo $LpmService->getWapHome() ?></td>
<td align='left'> <?php echo $LpmService->getLpmCatcher() ?></td>
<td align='left'> <?php echo link_to('Publish History','publishlookup/list?service='.$LpmService->getId()); ?></td>
<td align='left'> <img src='<?php echo $LpmService->getLogo() ?>' class='img_artwork_limit_small'/></td>
</tr>
<?php endforeach; ?>
then one i clicked on on of the services i go to form.php where i have:
$input= $_POST['services'];
print_r($input);
but i get error on that form:
Notice: Undefined index: services in /home/helloises/svn_wappool/apps/lpmanager/modules/adminservice/templates/_form.php on line 121
whatever service i selected on i just want to put in $POST['services']; and be able to access it on the next form.php
please help?
thanks