Open the google maps interface and you should be able to click on the lightning bolt and choose to get the directions from information from the form you have created.
The syntax would be:
<?php echo($Pcode); ?>
or you don't to add the code and you could reference the form element directly like:
<?php echo(isset($_POST["Pcode"])?$_POST["Pcode"]:""); ?>