Compound

B

Brandon

Guest
I have two textfields lets say in one I have cow in the other I have bell. Can I have that go to a third field thats Cowbell?
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
What exactly do you mean? You can join together the values of two seperate text inputs once the form has been submitted by doing something like:

Code:
<input type="text" name="whatever">
<input type="text" name="hmmha">

Code:
...
$value1 = $_POST['whatever'];
$value2 = $_POST['hmmha'];

$joinedval = $value1.$value2;
...

I think that's what you mean? I'm not 100% sure though. You can join any two or more variables in PHP by placing a period between them, like I just showed.
 

03moscropl

Flash Freak
Messages
698
Reaction score
0
Points
16
I have two textfields lets say in one I have cow in the other I have bell. Can I have that go to a third field thats Cowbell?

is it a riddel :pinch:
 
Top