I’m using the phpMotion script and trying to add a 2nd “tag” field to the Upload Video Form. (The ‘tag’ field is for entering tags or search words, so the video can be found when searching).
But upon submitting the Form, Tags2: (the duplicated line) was required to proceed, not the original Tag field.
Can you tell me what else I need to do to create a second (required) Tag field?
Buy I can’t find what is entered into Tags2 field when searched. The mysql has a column named ‘tags’, so do you think I’d be on the right track if I added a column named ‘tags2’ in that db, and then add ‘tags2’ to this line in the search.php file:
If I’ve understood correctly, you have added an extra field to the upload form - yes? I imagine you are also going to need to add that field to the part of the script that processes the upload.
Yes, you are correct, I added an extra field to the upload form.
Regarding, adding to the “part of the script that processes the upload”, I’ve added ‘tags2’ everywhere I see ‘tags’ in the uploader.php file like so:
// grab values from form if any
$form_submitted = $_POST['form_submitted'];
$title = $_POST['title'];
$description = $_POST['description'];
$tags = $_POST['tags'];
$tags2 = $_POST['tags2'];