textbox Posted May 9, 2007 Share Posted May 9, 2007 Hello there everyone. Right, I have a script that collects MMS messages content from a shortcode number. The script works perfectly, pulls apart the MIME elements and inserts them into a db allowing me to use them as I wish. I have a new piece of kit which allows me to transfer these into their API, and encode them into any format I want, mine being .flv. However, the only way i have found it able to be done is through a text box submission, and i dont want the user to have to login and press a submit button. Is there anyway of making this code below automated?! <form action="http://heywatch.com/upload" enctype="multipart/form-data" method="post" > <input type="hidden" value="YOUR_UPLOAD_KEY" name="key" /> <input type="hidden" value="http://yoursite.com/upload_success.php" name="redirect_if_success" /> <input type="hidden" value="http://yoursite.com/upload_error.php" name="redirect_if_error" /> <input type="hidden" value="20" name="your_site_user_id" /> <input type="hidden" value="1540" name="post_id" /> <p><input id="data" name="data" type="file" /></p> <p><input name="commit" type="submit" value="Upload" /></p> </form> I want to place it into my MMS handler so it does it all at once. Thanks Link to comment https://forums.phpfreaks.com/topic/50641-script-issues/ Share on other sites More sharing options...
trq Posted May 9, 2007 Share Posted May 9, 2007 Is there anyway of making this code below automated?! Yes. Take a look at the curl extension. Link to comment https://forums.phpfreaks.com/topic/50641-script-issues/#findComment-248984 Share on other sites More sharing options...
textbox Posted May 9, 2007 Author Share Posted May 9, 2007 Thanks Thorpe! Link to comment https://forums.phpfreaks.com/topic/50641-script-issues/#findComment-248985 Share on other sites More sharing options...
textbox Posted May 9, 2007 Author Share Posted May 9, 2007 Had a look around cURL bit not really sure how i would do it. Any other tips? Link to comment https://forums.phpfreaks.com/topic/50641-script-issues/#findComment-249339 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.