Linux / UNIX Tech Support Forum
This is a discussion on Simple Image Browser PHP within the Coding in General forums, part of the Development/Scripting category; hey all, i made this code bymyself and do not know what is wrong:S Code: <?php $i=1; $str=$i; $str .=".JPG"; ...
|
|||||||
| Coding in General Discussion on PHP/Perl/Python/Ruby/GNU C or C++. MySQL, PgSQL and (X)HTML or any other programming languages you want. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
Quote:
|
|
||||
|
i am not sure if u meant about this call
onclick=\"nextt($i,$str) so it uses JavaScript. my functions are inside the <?php ?> tags so i think its not a JS we still have the problem in the call onclick. u have any idea about using php besides JS using the onclick option?? the important thing to me is to let this script work. now am not sure if we can use JS with php or not but main thing let this thing work. do u have fix for this script?
__________________
Be to be and not to pee |
|
||||
|
Javascript only works on client side browser. This is more useful for input validation or calling other server side script without loading page again.
PHP on other hand works on server side. It is useful to store or retrieve the data and much more. Do you wanna process or do something on server or client? Or tell us the purpose of your code.
__________________
Vivek Gite Linux Evangelist |
|
||||
|
purpose of my code is to do image browser..
a form which has two buttons 1-next 2-previous an initial directory(Current directory does not need to be mentitioned ) when press next increments the i and view the next image. when press previous decrement i and view previous image. <img src= i & ".JPG"> hope u got it. thanks
__________________
Be to be and not to pee |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple active-passive clustering | james bond | CentOS / RHEL / Fedora | 1 | 30-10-2008 07:40 AM |
| I have simple proplem with ubuntu | QTrXP | Ubuntu / Debian | 1 | 14-04-2008 04:46 PM |
| Simple Xen API programming | unixfoo | XEN | 0 | 28-12-2007 11:00 AM |
| Perl simple html mail | chiku | Coding in General | 3 | 17-08-2007 07:59 PM |
| required help for running a shell script from browser | vaishalichitale | Shell scripting | 1 | 27-06-2006 04:53 PM |