How to insert variable into http:// address

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="<?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