hi all

i have a checkbox and input box

$others_text=$_REQUEST['others_text'];
<input  type="checkbox" value="<?php echo $others_text ?>" name="checkacc[]" id="checkacc[]"  /> 
Others <input  type="text" style="width:200px;" name="others_text"  />

i want that the customer should tick the checkbox and enter the information

in text box and that information should become the value of checkbox.

what should i do.

i m not able to write value of checkbox.


vineet

Hi,
well i have to ask, why would you want to have someone check a checkbox then have them enter something into a input box, then have the value be of the checkbox? Not scrutinizing or anything, because people have different ways of doing things.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.