Hi,
I am trying to get a couple of text field entered in the text boxes and am then wanting to concatenate the data into one PHP variable. Finally i want to send the php variable in the action command through the URL of the next page. please let me know how to do this.
the above code is how i am trying to concatenate the different textboxes data into one PHP variable. Please let me know if i am doing it incorrectly.
Now I want to pass that variable as a paramter in action command as location.php?IP =$IP... something like this. Please help.
I am trying to get a couple of text field entered in the text boxes and am then wanting to concatenate the data into one PHP variable. Finally i want to send the php variable in the action command through the URL of the next page. please let me know how to do this.
Code:
<p align="center">
<input name="textfield" type="text" size="5" maxlength="3">
.
<input name="textfield2" type="text" size="5" maxlength="3">
.
<input name="textfield3" type="text" size="5" maxlength="3">
.
<input name="textfield4" type="text" size="5" maxlength="3">
</p>
<?PHP
$IP = echo "'textfield'.'textfield2'.'textfield3'.'textfield4'";
?>
Now I want to pass that variable as a paramter in action command as location.php?IP =$IP... something like this. Please help.
Code:
<form name="contact_form" method="get" action= "location.php" onsubmit="return validate_form ( );">
Comment