hai hello lets help me in imag coding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kuttus
Forum Newbie
Posts: 15
Joined: Sun Jun 21, 2009 3:48 am

hai hello lets help me in imag coding

Post 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 .........
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: hai hello lets help me in imag coding

Post 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.
Last edited by McInfo on Wed Jun 16, 2010 12:41 pm, edited 1 time in total.
kuttus
Forum Newbie
Posts: 15
Joined: Sun Jun 21, 2009 3:48 am

Re: hai hello lets help me in imag coding

Post by kuttus »

hello can u get me the code i will refer bye going through it ok
User avatar
McInfo
DevNet Resident
Posts: 1532
Joined: Wed Apr 01, 2009 1:31 pm

Re: hai hello lets help me in imag coding

Post 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.
Post Reply