Send text field value using href to php

Mohd Imran

I have to send text field value using href to php is something like below. But it is not correct way. Can anyone please give me any solution?

<input type="text" id="myText" value="Mickey">
<a href="test.php?id=javascript:document.getElementById('myText').value;">
<input type="button" value="Click"></a> 
Tareq

<input type="text" id="myText" value="Mickey">
<a href="test.php" onclick="this.href = this.href +'?' + document.getElementById('myText').value;">test</a>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

send value from one jsp to another jsp using href

Getting value using pywinauto from text field

Send $_POST and $_FILES together using AJAX data field so that PHP can grab the value?

Send text from textbox to PHP using AJAX

How to send text to the Email field using Selenium and Python

Change 'href' value of a link using PHP and DOM

Using Reactive Forms to send value from field wrapped in compulsory object

How to insert a value in a field Text using Selenium?

How to send text with in the username field within an iframe using Selenium VBA

Flutter: is there any possibility to send the button value to the text field?

PHP Getting Text and Href from HTML page using XPATH

How to get the value of href using text

pass value to php script using location.href

Maximum amount of data a PHP script can send to a MySQL TEXT field?

send value on href with ajax using post method on CI

php send value of 0 using $_GET variable

how i can pass checkbox value using href in php?

Echo PHP Variable to Button Value Then Send Button Value to Input text

PHP array to a href value

Send text to Text Field

Unable to send text to Email field on Microsoft login page using Selenium

Text field value. Display one value send another to the server

Using a Button to add text to a text field value that is contained within a UITableViewcell

Using a field value (ID) to get a TEXT value from Reference Table

Replace the href value of qualifying <a>'s using the tag's visible text

How to send react native text field value as JSON.stringify

Using php to set value of html input field

How to send text within the Username field using Python Selenium

Send integer value from text field in Flutter to Go backend