Skip to main content
Participant
December 1, 2010
Question

Wildcard in form processing

  • December 1, 2010
  • 1 reply
  • 522 views

Hello,

I have coded some basic parameter passing to select a date then on the recieving form it passes the date as text r pull up the link to corresponding video.

Send page example:

<form name="form1" method="post" action="videom.cfm">

  <div align="center">

    <select name="select">

      <option value="0830">8/30/10</option>

  </select>
   
    <input type="submit" name="Submit" value="Submit">

  </div>

</form>

Recieve page example:

mms://hostservername/#select#10/video.wmv"
   

Is there some code I can pass as a wildcard so if I have a folder or file like 20101122-1304.... It will still access the folder or file.

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    December 1, 2010

    So you're posting to a WMV?  I'm not sure I follow what you're trying to do.

    A few options based on the assumption that you want to post to a dynamic URL:

    Use JavaScript to change the form action based on user input.

    Use an intermediary CF page to parse the form input and then use cflocation to forward the request where you want it to go.

    Participant
    December 1, 2010

    I am posting to a wmv now but in the future I will be posting to a

    folder that is timestamped but depending on the start time. So here is a

    little background of what I am doing. I create a video archive that I

    post on a video server. Then I have a send and receive cold fusion

    file. In the send file the user sees a drop down list, which is linked

    to send the date through option value to the receive file where it

    completes an url according to the date. With my new encoder it will post

    to a web presentation folder with a timestamp. The timestamp will be

    prety much the same url except that the minutes will change so I need a

    wildcard parameter to fill in the blanks. With your suggestion I see

    that you suggest that user enters in the data. Is there a way to still

    use a drop down list. How do you suggest I do the rest of your

    recommendation, I am a newbie. Thanks