-
Custom Forms - Help?
Hi all,
I found a previous thread that someone else had posted about custom forms. I tried using that thread (from Dr.Byte & Wayne) as a guide in helping me create my own custom form for my website.
I copied and pasted the files that Doc had made, and uploaded them into the proper folders as he had written. I also changed the name "band-signup" to "birthday_club".
I went back to my site, which is, www.pawglamour.com/catalog
How do I get rid of that error?
I am a COMPLETE novice at php, and don't know what to do.
Help?
-
Re: Custom Forms - Help?
please post the first 10 lines of your
/includes/extra_datafiles/birthday_club.php
-
Re: Custom Forms - Help?
:shocking:
I don't even have 10 lines...
<?php
// define the filenames used in the project
* define('FILENAME_BIRTHDAY_CLUB', 'birthday_club');
?>
:D
-
Re: Custom Forms - Help?
The * in that line is invalid syntax. Remove it.
-
Re: Custom Forms - Help?
Oh Thanks! That solved the problem.
But...
What now? I copied and pasted and saved the files to the proper folders. Shouldn't my 'Birthday Club' have the form in it now?
-
Re: Custom Forms - Help?
If you used band_signup as a base to work from, then the URL to your birthday_club form would logically be:
http://pawglamour.com/catalog/index....=birthday_club
... but of course, that's revealing another error ;)
-
Re: Custom Forms - Help?
Well Doc, for all you wiz' at php, it may be logical but to me, it's just :shocking:. :p
So, like the first error you pointed out, the problem was the '*'. I took all of them out, and finally got the form to display on the page! :lol:
But, the form is in the BOTTOM of the page, not where I'd like it to be (in between the sideboxes). http://pawglamour.com/catalog/index....=birthday_club.
How do I make it so its in between the sideboxes?
The code looks exactly like the tpl_bandsignup_default that you posted in Wayne's thread, except for the *s and 'band-signup' of course.
-
Re: Custom Forms - Help?
lol -- my comment about "logical" was meant to be an educational statement, not a "slam" against you ;) .... sorry ... I could have worded it more gently.
1. In looking at your site, I see that you have a line near the top of your tpl_birthday_club_default.php file that says:
HTML Code:
<tablewidth="70%" border="0" cellspacing="2" cellpadding="2" >
You might want to split "tablewidth" into two words:
HTML Code:
<table width="70%" border="0" cellspacing="2" cellpadding="2" >
2. In that same file, right above that table, you have a statement about zen_draw_form(FILENAME_BAND_SIGNUP, 'band_signup', .......
You probably need to change that to FILENAME_BIRTHDAY_CLUB
3. Related to #2, check to be sure that you've defined 'FILENAME_BIRTHDAY_CLUB', usually in a file in the /includes/extra_datafiles folder
PHP Code:
define('FILENAME_BIRTHDAY_CLUB', 'birthday_club');
-
Re: Custom Forms - Help?
Sweet! Thanks a whole lot! One more thing though, how do I take off the 'double legend' on the top where it says 'Home Band Sign-Up' twice?
:D
-
Re: Custom Forms - Help?
In the top of that same template file, you have a section that starts with this:
HTML Code:
<td class="breadCrumb" colspan="2"> .................
You need to remove that table cell, since it's carryover from a prior version.