Re: form post question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 28, 2010 at 10:12 AM, Jack <JackListMail@xxxxxxxxx> wrote:
> I have a form which has the following: ( quick clip )
>
>
>
>  <form id="form1" name="form1" method="post"
> action="http://www.abc.com/processing/process_form.php"; onSubmit="return
> preSubmit();">
>
>
>
>     <label>
>
>                <input name="area_interest" type="checkbox" id="field13"
> value="Peer Guide" />
>
>                Peer Guide</label>
>
>              <br />
>
>              <label>
>
> <input type="submit" value="Submit" />
>
>
>
> When the form runs process_form.php it emails the content and has several
> other fields from the form, but I have some fields like the one above that
> don't show up in the result.  The script that builds the message looks like
> the below
>
>
>
> $temp_message .= "Area(s) of Interest: ".
> $_POST['area_interest'] ."\n";
>
>
>
> Is there anything obvious that I am missing?
>
>
>
> Is there a way for me to show all the fields from the form, and their field
> names which are received by process_form?
>
>
>
>
>
> Thanks!
>
> Jack
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

Check boxes (assuming you have more than one in the set) are generally
coming in as an array. You can see this by running this

echo "<pre>";
print_r($_POST);
echo "</pre>";

to see the entire post array

-- 

Bastien

Cat, the other other white meat

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux