gavin.sibley Posted May 25, 2012 Share Posted May 25, 2012 Hello, i am trying to send a database field (ip) from one page to a seperate script when a button is pressed. i.e press download on the page and this triggers a seperate script which forces a download of the users file. the users file is named by their [ip]. if i echo out $slide[ip] on the page it displays the correct ip address, how would i then send this information to the script so that when it downloads the file it knows to get the file that has the clients ip address in the title? i have all the code for download etc. i just need to send the $slide[ip] from the page to the script. many thanks, gavin Link to comment https://forums.phpfreaks.com/topic/263090-get-and-post-variables/ Share on other sites More sharing options...
Barand Posted May 25, 2012 Share Posted May 25, 2012 <form action='download.php' method='post'> <input type='hidden' value='<?php echo $ip?>' /> <input type="submit" name="btnSub" value="Download" /> </form> Link to comment https://forums.phpfreaks.com/topic/263090-get-and-post-variables/#findComment-1348472 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.