| Post |
|
Greg - Guest
12:41 am - August 20, 2008
|
| |
|
Please replace the ??? with your data!
[desc]:Form is working and sending CC email and Admin email....the only thing not working is the data inputed to the Radio Buttons and "Leave a message!" fields. The only data being sent via email is the predefined fields. ie....Name, Email etc....
I have put the {_field5} into the code HTML and TXT email forms. It shows only the code. Not data inputed by users.
Thanks in advance. _
|
|
|
Greg - Guest
12:56 am - August 20, 2008
|
| |
|
Also, none of this data inputed is showing up in the Tracking Database either.
|
|
|
Greg - Guest
4:11 am - August 20, 2008
|
| |
|
Well, I put the fields above Captcha and CC and they appear in the emial now. Also I put in the CSS |fieldsetclose| like a sample form. Is this what is needed to provide the input data? Placement of Fields or the |fieldsetclose| tag?
|
|
|
Oliver
- Admin
7:22 am - August 20, 2008
posts 3562 |
| |
|
When you include the full data block (blue box with user data) in your email, do all the radio fields get added then?
Also, none of this data inputed is showing up in the Tracking Database either.
That's quite odd.
Well, I put the fields above Captcha and CC and they appear in the emial now.
That's another oddity,I wonder why the order makes any difference.
With the old order, did it matter if you turned Ajax on or off for the form?
Did or does it matter if the radio buttons are all selected (either option)?
Also I put in the CSS |fieldsetclose| like a sample form.
Fieldsets are a good thing to have (structurally) but not a requirement.
Would you mind sending me your full backup form (the one that didn't work per email -> inside cforms.php) so I can take a look?)
|
|
|
Greg - Guest
8:10 am - August 20, 2008
|
| |
|
First and foremost, thank you for the prompt help. I did not make any backups as I was just tooling around with this application for the first time and did not think to do that. Unless it backs up auto, I don't have one. But I will dup this form and take out the things I changed to make it work to try and replicate the issue. I did not attempt to turn off the AJAX either. I will try that.
Lastly, I tried both selected and non selected radio and nothing came through. Once I opened a Preset Form and placed a radio button into the new field set above captcha and CC and the closefieldset CSS it worked, then I replicated that into my form and it worked, So I am not sure yet, what set it off. One of three things; fieldsetclose, order of fields or above captcha. I will change one by one to see.
Thanks again.
|
|
|
Greg - Guest
8:20 am - August 20, 2008
|
| |
|
Ok, I found the one step that lost all data from being placed into the database and thus email.
First move was removing the fieldsetclose and it still worked.
Second step I moved the "Visitor Verification Q&A" above the radio buttons and this is what killed the info from being passed. Not sure what this means for you, but this is the issue obviously.
Hope this helps. I will be making sure for now that "Visitor Verification Q&A" is below everything.
|
|
|
Oliver
- Admin
10:20 am - August 20, 2008
posts 3562 |
| |
|
Thanks for following up! I was able to replicate and will fix it for v8.7. cforms indeed cuts off the email data (for logged-in users!) after the Q&A or CAPTCHA field.
It should however work fine for not logged-in users.
There is also a little issue with empty radio boxes (cforms currently expects at that at least one is being checked). This will also be fixed in v8.7.
I can send you 8.7 via email if you like.
|
|
|
Greg - Guest
6:38 pm - August 21, 2008
|
| |
|
Very cool, yes, I would appreciate that.
I had another inquiry about creating something based on this form.
As you saw I was doing a weekly football pool. I am also doing an NFL eliminator challenge that allows for each user to pick only one team each week. If they lose, they're done, if they win, they move onto the next week. The clincher is that they cannot pick that team again. Is there any way to have the data check to see if that user has selected that team (choice) already and maybe grey out that team, so they can't select it or something of that nature. Does this make sense?
Lastly.....is there any way to show a confirmation page of their picks, versus making the form disappear or do nothing or redirect to another success page? In other words....once they hit submit, they see their submission right there.
Thanks!!
|
|
|
Oliver
- Admin
7:00 pm - August 21, 2008
posts 3562 |
| |
|
If you need to on-the-fly change attributes of a field based on a logged in user, you need to use cforms dynamic form capabilities.
In the success message you can reference any form fields. Now if you want to include logic into the success message, e.g. only show the selected teams etc. you need to in addition use my-functions.php filters (non-ajax is enough if you use dynamic forms!) to fill a hidden field (used as a proxy container), which in turn you can reference in your success message.
re. the last point there are at least 4 posts (some very recent) that detail the steps.
|
|
|
Greg - Guest
10:55 pm - August 21, 2008
|
| |
|
Oliver said:
If you need to on-the-fly change attributes of a field based on a logged in user, you need to use cforms dynamic form capabilities.
In the success message you can reference any form fields. Now if you want to include logic into the success message, e.g. only show the selected teams etc. you need to in addition use my-functions.php filters (non-ajax is enough if you use dynamic forms!) to fill a hidden field (used as a proxy container), which in turn you can reference in your success message.
re. the last point there are at least 4 posts (some very recent) that detail the steps.
WOW! Way over my knowledgebase bro.lol.....but thank you. And again, thanks for everything, I appreciate your continued assistants in your creation! It's a great tool.
|
|
|
Greg - Guest
7:21 pm - August 22, 2008
|
| |
|
Hello,
Strange thing happened yesterday on my site after everyone made there picks using the form. My site crashed. I asked my host what happened, and here was there response.
| |
We can see that your site is loading fine here. However, we see that the MySQL queries for your database are running extremely slow. We would advise to review the MySQL queries in your application/database to see if there is anything wrong. Perhaps, you can try disabling the WordPress plugin you have added recently to check whether that is causing the issue.
I had to completely un install cform from the backside be simply removing it and then phpmyadmin to delete all databases. Is this a common issue? Did I overload the database? should I delete the records of the tracking once i have it downloaded? Don't know what to do man, but I don't want to lose this sweet tool. But right now, its killing my site.
Thanks
|
|
|
Oliver
- Admin
7:28 pm - August 22, 2008
posts 3562 |
| |
|
Never heard of such a thing.
But it depends on your provider and the package you have bought. If they're extremely restrictive then yes, any new plugin with additional DB queries & new data records could cause the system to stall.
PS: To put their response into perspective: I'd ask them how many SQL queries / sec are deemed ok and what your average was. I'm nearly 100% sure they are not able to give you an answer...
|
|
|
Greg - Guest
7:53 pm - August 22, 2008
|
| |
|
Here is what my host is saying: Generally you are allowed 25 persistent connections due to residing within a shared environment. Related issues should be rectified by limiting or disabling persistent connections from the applications back-end.
Does this not work with cform and having 40+ users submitting in one day? Im not sure what all this means, so I am a bit in the dark on this. Any suggestions would be very cool. My site is still down.
|
|
|
Oliver
- Admin
8:22 pm - August 22, 2008
posts 3562 |
| |
|
If 40+ users submitting a day brings the server down, I'd immediately switch providers.
I know that cforms tends to be PHP Mem hungry, but have never heard of *any* SQL query issues. Also, 25 persistent connections to me only means that the max allowed concurrent users (and thus creating a connection) is 25. This per se doesn't imply the number of SQL queries, though.
If worse comes to worse I'm afraid you might have to turn off cforms. But I'm quite sure that if you start adding other plugins to your site, you'll soon hit a wall again.
PS: Another way, of bringing down SQL queries is to install a cache plugin ("Super Cache" or "WP Cache").
|
|
|
Greg - Guest
9:39 pm - August 22, 2008
|
| |
|
Thank you Oliver. I have indeed, removed all databases by cform and have deleted using a query all post revisions. And I deactivated cforms and still my site is down. I have asked my host which table is slowing down my site or stalling it out. They haven't replied yet.
|
|
|
Greg - Guest
7:26 am - August 23, 2008
|
| |
|
UPDATE:
Well after tooling around the all my plugins, it looks like WP-Sticky was the bad database. I have reinstalled cformII and everything is working again.
|
|
|
Oliver
- Admin
1:47 pm - August 23, 2008
posts 3562 |
| |
|
Thanks for the update!! Whew, got me scared there for a sec ;-)
|
|