Page 1 of 1
hai hello lets help me in imag coding
Posted: Sat Jun 27, 2009 9:00 am
by kuttus
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
Posted: Sat Jun 27, 2009 9:28 am
by McInfo
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.
Re: hai hello lets help me in imag coding
Posted: Sat Jun 27, 2009 10:05 am
by kuttus
hello can u get me the code i will refer bye going through it ok
Re: hai hello lets help me in imag coding
Posted: Sat Jun 27, 2009 10:29 am
by McInfo
Here are some pieces of the puzzle.
Displays an image in HTML:
Code: Select all
<img src="example.jpg" alt="example.jpg" />
Lists files from a directory in a list:
Code: Select all
<ul><?php
$dir = '.';
if (is_dir($dir)) {
$files = scandir($dir);
foreach ($files as $file) {
echo "<li>$file</li>";
}
}
?></ul>
Passes a GET variable via a hyperlink:
Code: Select all
<?php
if (isset($_GET['hello'])) {
echo '<p>Hello, '.$_GET['hello'].'</p>';
}
?>
<a href="?hello=world">Say Hello</a>
Passes a POST variable via a form:
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>
Edit: This post was recovered from search engine cache.