Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.