midrange.com code scratchpad
Name:
XML Web form
Scriptlanguage:
Plain Text
Tabwidth:
4
Date:
05/22/2020 03:34:32 pm
IP:
Logged
Description:
Is it possible to create an web-page,form,that would accept specific input and generate
an XML file from it.The form has to have the ability to add items in one particular section(where we can
add additional streams) and give us the ability to remove streams as well.
For each stream we must be able to attach a logo for that stream as well.
Code:
  1.  
  2.  
  3. Xojo or Php for this could be used,
  4.  
  5. below is the sample XML file and Data Format.
  6.  
  7. <?xml version="1.0" encoding="UTF-8" ?>
  8. <collectionList>
  9. <grid class="5ColumnGrid">
  10. <section>
  11. <lockup onselect="playMedia('https://player.vimeo.com/external/187143276.m3u8?s...')">
  12. <img src="/resources/images/lockups/shelf1.png" width="308" height="308" />
  13. <title class="showTextOnHighlight">Title 1</title>
  14. </lockup>
  15. <lockup onselect="playMedia('https://player.vimeo.com/external/184669023.m3u8?s...')">
  16. <img src="/resources/images/lockups/shelf2.png" width="308" height="308" />
  17. <title class="showTextOnHighlight">Title 2</title>
  18. </lockup>
  19. <lockup onselect="playMedia('https://player.vimeo.com/external/181758939.m3u8?s...')">
  20. <img src="/resources/images/lockups/shelf3.png" width="308" height="308" />
  21. <title class="showTextOnHighlight">Title 3</title>
  22. </lockup>
  23. <lockup onselect="playMedia('https://player.vimeo.com/external/180890459.m3u8?s...')">
  24. <img src="/resources/images/lockups/shelf4.png" width="308" height="308" />
  25. <title class="showTextOnHighlight">Title 4</title>
  26. </lockup>
  27. <lockup onselect="playMedia('https://player.vimeo.com/external/180014530.m3u8?s...')">
  28. <img src="/resources/images/lockups/shelf5.png" width="308" height="308" />
  29. <title class="showTextOnHighlight">Title 5</title>
  30. </lockup>
  31. <lockup onselect="playMedia('https://player.vimeo.com/external/178583018.m3u8?s...')">
  32. <img src="/resources/images/lockups/shelf6.png" width="308" height="308" />
  33. <title class="showTextOnHighlight">Title 6</title>
  34. </lockup>
  35. <lockup onselect="playMedia('https://player.vimeo.com/external/178457098.m3u8?s...')">
  36. <img src="/resources/images/lockups/shelf7.png" width="308" height="308" />
  37. <title class="showTextOnHighlight">Title 7</title>
  38. </lockup>
  39. <lockup onselect="playMedia('https://player.vimeo.com/external/177558935.m3u8?s...')">
  40. <img src="/resources/images/lockups/shelf8.png" width="308" height="308" />
  41. <title class="showTextOnHighlight">Title 8</title>
  42. </lockup>
  43. <lockup onselect="playMedia('https://player.vimeo.com/external/173738601.m3u8?s...')">
  44. <img src="/resources/images/lockups/shelf9.png" width="308" height="308" />
  45. <title class="showTextOnHighlight">Title 9</title>
  46. </lockup>
  47. <lockup onselect="playMedia('https://player.vimeo.com/external/187143276.m3u8?s...')">
  48. <img src="/resources/images/lockups/shelf2.png" width="308" height="308" />
  49. <title class="showTextOnHighlight">Title 10</title>
  50. </lockup>
  51. </section>
  52. </grid>
  53. </collectionList>
  54. </stackTemplate>
  55. </document>
  56.  
  57.  
  58. I tried below HTML code to design web page for above But now the problem is how to 1) make it create an XML file.
  59.  
  60. 2) Then expand the form to handle a variable number of input fields.
  61.  
  62. <!DOCTYPE html>
  63. <html>
  64. <head>
  65. <title>Form</title>
  66.  
  67. </head>
  68.  
  69. <body>
  70. <form>
  71. a media URL:<br />
  72. <input type="text" />
  73.  
  74. <br /><br />
  75. an Image:<br />
  76. <input type="file" />
  77.  
  78. <br /><br />
  79.  
  80. Title:<br />
  81. <input type="text" />
  82.  
  83. <br /><br />
  84.  
  85.  
  86. <input type="submit" />
  87.  
  88. </form>
  89.  
  90. </body>
  91. </html>
  92.  
  93.  
  94. Thanks
© 2004-2019 by midrange.com generated in 0.004s valid xhtml & css