•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 363,489 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,435 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 388 | Replies: 10
![]() |
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
$rand= rand(1, 100);
to display the image on the upload page
$thumb_name=$broad1name2 . $rand;
to post the random number to the next page on the submit button
<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
$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 10:31 am.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- BLUE Screen stop 0x8e (Windows NT / 2000 / XP / 2003)
- 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 / 2003)
- Checking file on System C (Windows NT / 2000 / XP / 2003)
- boot problems (Windows NT / 2000 / XP / 2003)
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


Linear Mode