Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 4th, 2006, 11:22 PM
Registered User
 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Passing a Variable

I am retrieving a member list from a password protected site and am developing a mailer to allow the members to send emails to some or all of the group.

Two records (of several) retrieved from the mySQL database are member name ($name) and email address ($email). I would like to print a list of member names w/ check boxes. The email address would not be shown. I was hoping to store the email address in VALUE, but that doesn't seem to be possible.

Checked names would receive emails as I would $_POST entires from the the check[] from the mailer The difficulty is in storing the email address in the VALUE. This compiles, but I am unable to determine value. (echo value, echo $value, echo $check[] -- none work

<input type="checkbox" name="check[]" value="$email">
<echo "$name";?>

gives me a check box w/ the members name next to it, but how will I pass the email address?

doesn't work. is a str_replace possible?

Regards & Thank you, --Larry
 
Old August 8th, 2006, 07:52 AM
Friend of Wrox
 
Join Date: Nov 2005
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

From your post it is clear what your trying to do. However it is not clear what your problem is. Can you post what doesnt work. Mostly people read this forum to help you solve problems.

__________________________________________________ ________
This is my junk I'm gona eat it





Similar Threads
Thread Thread Starter Forum Replies Last Post
passing variable tbekarov ASP.NET 2.0 Professional 7 February 1st, 2006 04:16 PM
Passing variable to a public variable Hudson40 Access VBA 2 February 25th, 2005 06:23 AM
Passing a variable mrideout BOOK: Beginning ASP.NET 1.0 3 August 6th, 2004 02:57 PM
Passing a variable trekmp ADO.NET 1 March 4th, 2004 01:57 PM
passing variable gumgak Classic ASP Databases 13 June 29th, 2003 09:13 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.