How can I transfer the values inserted in <input type="text" name="num1"> to radio button <input type="radio" name="rep_num1" value="">On submit of form.
Actuall when user insert the value or text in the textbox the value of the text box should replace or transfer to the value in radio button when user click on submit.
example if the user typed hello in text box on submitting the form the "hello" should replace the blank value of radio button as on submit the radio button should have the value "hello"
Please help me Thanxx
The code should be in javascript or HTML if possible
Thanxx

This does not sound like a good way to implement a form :)

Anyhow, you can attach your submit button to a javascript function, in which you can make a customized POST call with ajax

function submitForm()
{
 //select the text value with native js or jquery
 var text = $('.classOftextInput').attr( value );

 //make the custom POST string to map the text with rep_num1
 var postString = 'rep_num1=' + text;

 //use native js or jquery AJAX to submit the form with POST
 $.ajax( '/formBackend' ,
     { 
         'type': 'POST',
         'data': postString,
     }).done( function(data)
         {
            // give information to the user about form submit ( success/ fail )
         });

This might not be 100% accurate, but you get the idea

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.