Skip to content Skip to sidebar Skip to footer

How To Send Dynamically Created Text Field Value To Php Mail

i created text field using javascript depends on the usr radio button selection, how to get the values of dynamically created field value,i need to send these value to php mailer

Solution 1:

There must be a way to send data through js to PHP, but since you want to retrieve that in php why not make it directly so?

Since is a form you can use the type of method of sending that data (POST OR GET) and getting it through php!

<form action="yourphpfile.php" method="post">
Some data: <inputtype="text" name="data">
<inputtype="submit">
</form>

when someone clicks on submit it get's registered through PHP so if in your php code you use

$_POST["data"]

You'll get the value of the input you've made

Post a Comment for "How To Send Dynamically Created Text Field Value To Php Mail"