Is is possible to pre-populate a field from the url the page is loaded from. eg http://mysite.com/phpform/form1.html?phone=5555555555 ?
No, and Yes.
No it is not designed this way. Yes it is possible to modify the processor.php to accept this type of input.
I'm not programmer, but I'm willing to give it a try. Any tips?
1.) Your form has to become a php file, form.php 2.) Inside the form you can prepopulate (default values) input fields such that the form shows the value you add in the URL to the displayed form field.
<td height="30" width="469" bgcolor="#EFF3F7" bordercolor="#FFFFFF"> <font face="Verdana"> <?php echo "<input type=text name='lastname' value='".$_GET['lname']."' >"; ?> </td>
Do something similar to any or all input fields. If none of the field variables are in the URL, the form works as it did before.
Log in to post a comment.
Is is possible to pre-populate a field from the url the page is loaded from. eg http://mysite.com/phpform/form1.html?phone=5555555555 ?
No, and Yes.
No it is not designed this way.
Yes it is possible to modify the processor.php to accept this type of input.
I'm not programmer, but I'm willing to give it a try. Any tips?
1.) Your form has to become a php file, form.php
2.) Inside the form you can prepopulate (default values) input fields such that the form shows the value you add in the URL to the displayed form field.
<td height="30" width="469" bgcolor="#EFF3F7" bordercolor="#FFFFFF">
<font face="Verdana">
<?php
echo "<input type=text name='lastname' value='".$_GET['lname']."' >";
?>
</td>
Do something similar to any or all input fields. If none of the field variables are in the URL, the form works as it did before.