Jump to content

Script issues


textbox

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.