| | |
stop the caching
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
if i am to store the image with a random number attached to it then could i post the number on the submit button and retrieve it on the next page. would the code look something like this
to display the image on the upload page
to post the random number to the next page on the submit button
and to retrieve the random number on the next page
that way the number would be the same if the code is correct
PHP Syntax (Toggle Plain Text)
$rand= rand(1, 100);
to display the image on the upload page
PHP Syntax (Toggle Plain Text)
$thumb_name=$broad1name2 . $rand;
to post the random number to the next page on the submit button
PHP Syntax (Toggle Plain Text)
<form name="newad" method="post" enctype="multipart/form-data" action=""> <input type="hidden" method="post" name="rand" /> <input type="file" name="broad1_image" ></td></tr> <input name="Submit" type="submit" id="image1" value="Upload image" ></td></tr> </form>
and to retrieve the random number on the next page
PHP Syntax (Toggle Plain Text)
$rand=$_POST['rand']
that way the number would be the same if the code is correct
Last edited by kevin wood; May 8th, 2008 at 11:31 am.
![]() |
Similar Threads
- BLUE Screen stop 0x8e (Windows NT / 2000 / XP)
- STOP Error 0x0000007A, KERNEL_STACK_INPAGE_ERROR (Troubleshooting Dead Machines)
- STOP: 0x0000000A ..... HELP PLEASE! (Troubleshooting Dead Machines)
- Hijack this log, can someone help me please?? (Viruses, Spyware and other Nasties)
- Windows will not start up properly? (Windows NT / 2000 / XP)
- Checking file on System C (Windows NT / 2000 / XP)
- boot problems (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: How to pass array values from php to mysql stored procedures??
- Next Thread: Hopefully a straightforward PHP/MySQL question
Views: 1432 | Replies: 10
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email encode error file files folder form forms function functions google howtowriteathesis href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple multipletables mysql oop parse paypal pdf php problem provider query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table template tutorial update updates upload url validation validator variable video web xml youtube





