How to insert variable into http:// address

Hi,
I am SUCH a beginner. I would appreciate any help you could offer. I am trying to insert a value from the database into the end of an html address:

I have the value – in a print statement it’s:

<?php echo $fieldsFormatted['field_postcode']; ?>

How do add the value of ‘field_postcode’ (say for example ‘2484’) onto the end of the http like this:

Thanks in advance , guys. Cheryl

You could use something like:

<script type="text/javascript" src="http://www.website.com/graphic_current.jsp?postcode=<?php echo $fieldsFormatted['field_postcode']; ?>"></script>

Keep in mind that the PHP parts in a file are executed before anything is sent to the client browser.

Sponsor our Newsletter | Privacy Policy | Terms of Service