Create a form with specific requirements
Permalink
Hi all,
I have been trawling the forums for the last two months trying to find the answer to this question.
Is there anyway that I can create a form for a fixtures list where I, as the admin, can change the team name each week and the user can only edit the score?
If not I have html code for this but I am at a loss as to how I can get this sent to my e-mail address or even better the Dashboard. Is this possible?
I have been trawling the forums for the last two months trying to find the answer to this question.
Is there anyway that I can create a form for a fixtures list where I, as the admin, can change the team name each week and the user can only edit the score?
If not I have html code for this but I am at a loss as to how I can get this sent to my e-mail address or even better the Dashboard. Is this possible?
<table border="0"> <colgroup span="1" style="width: 299.99999pt"></colgroup> <tr> <td>01/Dec/2012</td> </tr> <table border="0"> <colgroup span="1" style="width: 100pt"></colgroup> <colgroup span="1" style="width: 25pt"></colgroup> <colgroup span="1" style="width: 25pt"></colgroup> <colgroup span="1" style="width: 100pt"></colgroup> <colgroup span="1" style="width: 25pt"></colgroup> <tr> <td>West Ham</td> <th><input type="text" size="1" value=""></th> <th><input type="text" size="1" value=""></th>
Viewing 15 lines of 90 lines. View entire code block.
Perhaps I'm over-simplifying what you are trying to accomplish but couldn't you just use the standard 'Form' block and create a new form each week?
Hi,
The regular form does not let me lay out the form as per the above html;
1 2 3 4
"Team Name" "Text Field" "Text Field" "Team Name"
I need the data to be displayed in 4 Columns and then the number of rows are dependant on the number of games there are in a gameweek.
Deos the regular form do this or is there anything out there that can?
Thanks
The regular form does not let me lay out the form as per the above html;
1 2 3 4
"Team Name" "Text Field" "Text Field" "Team Name"
I need the data to be displayed in 4 Columns and then the number of rows are dependant on the number of games there are in a gameweek.
Deos the regular form do this or is there anything out there that can?
Thanks
See, I was over-simplifying!
You could build an 'External Form'. Andrew explains the basics here:
http://www.concrete5.org/community/forums/chat/external_forms_file_...
You could build an 'External Form'. Andrew explains the basics here:
http://www.concrete5.org/community/forums/chat/external_forms_file_...
Thanks mhawke,
I was able to create the form in the root but when I view it on the site an error occurs.
"Parse error: syntax error, unexpected '<'
in /home/barrys/public_html/concrete/blocks/external_form/forms/gameweek.php on line 14"
It could be the case that I am putting my html code in the wrong place. I am very new to this so I don't know where the code should fit in the file.
Thanks
Barry
I was able to create the form in the root but when I view it on the site an error occurs.
"Parse error: syntax error, unexpected '<'
in /home/barrys/public_html/concrete/blocks/external_form/forms/gameweek.php on line 14"
It could be the case that I am putting my html code in the wrong place. I am very new to this so I don't know where the code should fit in the file.
Thanks
Barry
Ok, first things first. You need to remove the gameweek.php file from the '[root]/CONCRETE/blocks/external_form/forms' folder and put it in a new folder (that you will need to create) at "[root]/blocks/external_form/forms/". Notice there is no 'concrete' in the new path. You need to stay out of the 'concrete' folder because those are the 'core' files. You will notice that there is a 'blocks' folder inside the 'concrete' and a 'blocks' folder outside. Your files need to go in the outside blocks folder or else you will lose access to this file the next time upgrade concrete5.
Now that error that happens to every developer about 20 times a day! It just looks like a PHP or HTML typo on line 14. Have a close look for any incorrect syntax on line 14. If you'd like, you can attach your gameweek.php form here so we can give some more detailed help. You'll need to change the file's extention from .php to .txt before you can attach it.
Now that error that happens to every developer about 20 times a day! It just looks like a PHP or HTML typo on line 14. Have a close look for any incorrect syntax on line 14. If you'd like, you can attach your gameweek.php form here so we can give some more detailed help. You'll need to change the file's extention from .php to .txt before you can attach it.
Hi mhawke,
Just sent you an urgent message.
Thanks
Barry
Just sent you an urgent message.
Thanks
Barry