hai hello lets help me in imag coding
Moderator: General Moderators
hai hello lets help me in imag coding
give me a code for image moving by forward by clicking next button and going back by clicking back button will u help me and while click the image it should enlarge in other page .........
Re: hai hello lets help me in imag coding
Here are some things you need to know for this project.
W3Schools: PHP Manual: Please describe your project in more detail.
Edit: This post was recovered from search engine cache.
W3Schools: PHP Manual: Please describe your project in more detail.
Edit: This post was recovered from search engine cache.
Last edited by McInfo on Wed Jun 16, 2010 12:41 pm, edited 1 time in total.
Re: hai hello lets help me in imag coding
hello can u get me the code i will refer bye going through it ok
Re: hai hello lets help me in imag coding
Here are some pieces of the puzzle.
Displays an image in HTML:
Lists files from a directory in a list:
Passes a GET variable via a hyperlink:
Passes a POST variable via a form:
Edit: This post was recovered from search engine cache.
Displays an image in HTML:
Code: Select all
<img src="example.jpg" alt="example.jpg" />Code: Select all
<ul><?php
$dir = '.';
if (is_dir($dir)) {
$files = scandir($dir);
foreach ($files as $file) {
echo "<li>$file</li>";
}
}
?></ul>Code: Select all
<?php
if (isset($_GET['hello'])) {
echo '<p>Hello, '.$_GET['hello'].'</p>';
}
?>
<a href="?hello=world">Say Hello</a>Code: Select all
<?php
if (array_key_exists('hello', $_POST)) {
printf('<p>Hello, %s</p>', $_POST['hello']);
}
?>
<form method="post" action="<?php echo basename(__FILE__); ?>">
<input type="submit" name="hello" value="World" />
</form>