View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Dynamic input script/form

Thread began 5/28/2009 3:09 am by secure377208 | Last modified 6/17/2009 10:31 am by secure377208 | 2749 views | 7 replies


directions location from form input

As mentioned we do not have php experience so I was hoping for something a bit beyond the theory, I have managed to cobble together this basic script (below) which allows input of the postcode and then places the postcode onto the page which although crude does work.

What I need to know is what is the correct syntax to input this variable into the maps postcode field on the directions page ( I am aware that I need to use the value ".$Pcode." but do not know what the syntax should be to get it into google maps.

I am hoping that it is all as simple as I have imagined.

Any help would be appreciated.

Thansk in advance

$Pcode = $_POST["Pcode"];
if (!isset($_POST['submit'])) { // if page is not submitted to itself echo the form
<html xmlns:v="urn:schemas-microsoft-com:vml">
<title>map test</title>
<form method="post" action="<?php echo $PHP_SELF;?>">
Post Code:<input type="text" size="12" maxlength="12" name="Pcode"><br />

<input type="submit" value="submit" name="submit">
} else {
echo "Your postcode is ".$Pcode." .<br />";
echo $f."<br />";
echo "<i>".$quote."</i><br />";


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...