Help with php and this part of the code ?

  • Context: PHP 
  • Thread starter Thread starter pattersonz
  • Start date Start date
  • Tags Tags
    Code Php
Click For Summary
SUMMARY

The discussion centers around a PHP code snippet that requires modification to create clickable links effectively. The user seeks assistance in enhancing their code to streamline the process of adding new pages across multiple layouts. Key issues identified include invalid HTML elements and incomplete code segments, which hinder clarity and functionality. The community emphasizes the importance of providing complete information for effective troubleshooting.

PREREQUISITES
  • Proficiency in PHP programming, particularly in generating dynamic HTML content.
  • Understanding of HTML structure and syntax, including anchor tags and image elements.
  • Familiarity with web development practices, especially in managing multiple layouts.
  • Knowledge of debugging techniques for identifying and resolving code issues.
NEXT STEPS
  • Review PHP documentation on generating HTML links and images dynamically.
  • Learn about HTML validation tools to identify and correct invalid markup.
  • Explore best practices for managing multiple layouts in web applications.
  • Investigate debugging techniques specific to PHP and HTML integration.
USEFUL FOR

Web developers, particularly those working with PHP and HTML, who are looking to improve their coding practices and streamline the management of multiple layouts in their projects.

pattersonz
Messages
1
Reaction score
0
Ok here is the code below, I need to know what I need to change in this code for it to be able to be a clickable link... I have many layouts and want to add more but with so many pages, its a bit hard to go through 49 pages just to add one page. I already submitted this problem to web design company but have yet to get any solution. So here is the code. I hope someone can help me!

<img src="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $img_url . "/" . $imgpath . $file; ?>" alt="<?php echo $file; ?>" width="250" ><br>
<textarea name="textarea2" cols=23 rows=7 onClick="this.focus();this.sel...
<a href="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $site_url; ?>" target="_blank" title="<?php echo $urlpath . $file; ?>">
<img src="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $img_url . "/" . $imgpath . $file; ?>" border="0" alt="<?php echo $urlpath . $file; ?>"></a>
<?php if ($support_image != "") { ?>
<img src="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $support_image; ?>" alt="Myspace Editors" style="position:absolute; left:0px; top: 0px;" border="0"></a>
<?php } ?>
<a href="[PLAIN][PLAIN]http://<?php [/PLAIN] [/PLAIN] [/PLAIN] [/PLAIN] echo $site_url; ?>/" target="_blank" title="Myspace Images">This image is from <?php echo $site_name; ?></a></center></textarea>
 
Last edited by a moderator:
Technology news on Phys.org
If possible post the html generated by your php page, or a link. I see multiple links, invalid HTML (i.e. this.sel...) and only a sub portion of the HTML document, etc.
All of this makes your question fairly ambiguous. Why don't you provide as much information as you can, it's very frustrating otherwise.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 32 ·
2
Replies
32
Views
3K
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 6 ·
Replies
6
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K