Reply
Forms problem, kind of....
Old 11-10-2004, 01:31 PM Forms problem, kind of....
Super Talker

Posts: 121
I have created a mailing list script and want to show all the emails that are on the list wiith checkboxes next to them, if the form is submitted the emails that had their boxes checked are deleted from the list.

I know how to produce a list of all the emails with their corresponding boxes, my problem is i cant think of an efficient way of passing them to the next page and then processing them, and tips would be greatly appreciated

So far i had the idea of passing them as an array and then using a foreach() of While() loop, how can i pass them as an array?
vegancoder is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 11-10-2004, 01:48 PM
Super Talker

Posts: 121
I have managed to do it, im not usre if its the proper way to do it but this is how i have done it, if anyone can point me on how tpo do it a better way please let me know, or if u wanna praise me for finding a solution that would be appreciated

PHP Code:
$last count($_POST); // find the very last array element subscript
array_splice($_POST$last-1); //split the array and remove the very last element

foreach($_POST as $value){
echo 
'<br>'.$value//output all the remaining values

vegancoder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Forms problem, kind of....
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11010 seconds with 12 queries