close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
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 | 3773 views | 7 replies


still not working

Hi Ray,
I am having extreme problems trying to get this to work, on the face of it it seems as though it should be so simple and I am sure it is a regular requirement for users so I am suprised that you do not have a working template to demonstrate the facility.

At present I am happy to accept that my lack of php knowledge is the cause of the issue but having experienced a number of issues with this program in the past which havent been my fault but program anomolies (you may recall that the multiple dynamic locations doesn't work reliably and the inability to re-edit maps if the containing pages are within a sub folder) I am fast losing not only confidence but the will to live and am seriously considering looking at other products which do the same things in the hope that they will work better for me.

I dont expect you to teach clients php but would expect that you have an interest in ensuring that clients can use the programs without too many hassles in order to prevent product dissatisfaction, after all you do market your products for use by those who do not have programming skills.

Anyway gripe over, back to business, I have listed my issues below.

a) Tried using your suggestion of the lightning bolt to add the variable however if I select this the code produced is
<?php echo((isset($_POST["Pcode"]))?$_POST["Pcode"]:"") ?>
which is different to your advice of
<?php echo(isset($_POST["Pcode"])?$_POST["Pcode"]:""); ?> due to the extra set of brackets, although I cannot get it to work using either, it would be helpful to know which is correct.

b) Having got the simple form to echo the information input into the postcode field I then add the google map but find that the map displays on the form input screen and has somehow produced directions from Scotland to my fixed point, I can only assume that the map has somehow tried to interpret the variable in its native form as a postcode location as at this point a postcode hasn't been input into the form.

c) I input a postcode but the map and directions do not display on the resulting page but the postcode does display as per the input script, I have tried placing the map in different locations throughout the code but get syntax errors due to my lack of php knowledge in not knowing what should go where.

As I have already experienced issues with the program caused by the location of the <script type="text/javascript" src="google_javascript/wagmp_maps.js">/*wagmp*/</script> code being automatically placed at the foot of the page causing an inability to re-edit some maps which is only overcome by placing the code directly under the map id and style code and ensuring that the map style and the directions code are not split onto seperate lines I am obviously concerned that my issues could possibly be due to more anomalies with the program.

In effect the map is displaying before the variable is filled, but does not display afterwards on the page which is created by the script showing the form result.

My requirement is that the map should only display after the postcode value has been entered (on the results page) in the same way that that the script produces the echo statement showing the input, You can see this here dir.php

where do I need to place the google map

<div id="wagmp_map_4" style="width: 300px; height: 300px;"></div><div id="wagmp_directions_4"></div>
<script type="text/javascript" src="google_javascript/wagmp_maps.js">/*wagmp*/</script>

code to achieve this effect? Do I need to have the input and the results as two different pages to get it to work?

Given the work you have put into support for the products I am extremely suprised that you have not created a simple demo template providing this functionality as I am sure it would be helpful to many clients as I cannot find any documentation on your site supporting this requirement.

I really dont want to have to give up on this as it seems such a simple task but I am finding it hard to justify the time and obviously the time difference with support doesn't help so any help you or anyone else can provide would be appreciated.

Thanks in advance.

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...