Easily create forms with no HTML or PHP knowledge. Questions can be made compulsory and are checked before the form is submitted. Forms can be previewed. (You can create multiple forms)
If there is say form1 and user have already submitted to it, is it possible to pull off the old values or if the user submits again, just update the new values rather than insert new lines in the database ?
to work. When I press submit, I just get a blank message where the "Click here to go to thread" would normally appear.
I'm sure I'm doing something wrong. I'm actually not sure to select, if anything, where you would normally select to submit to thread, email, forumID, etc. I tried selecting nothing and also selecting "Submit to Thread" but leaving the threadID blank. Neither worked.
I would like to say that this is a FANTASTIC mod and is as well supported as any mod I've ever seen here.
I'm sending a donation now because this is worth it regardless of whether or not this issue is figured out.
Make sure you are using the right question hash: see attachment
If there is say form1 and user have already submitted to it, is it possible to pull off the old values or if the user submits again, just update the new values rather than insert new lines in the database ?
Okay so that worked for the initial post .... don't kill me... but now anytime the same user posts anything else instead of adding a new note to the facebook wall, it replaces the old post with the new post. I would normally ask the FB developer/thread for help but the thing is that it just started happening when I installed the new xml file. Sorry for the trouble and I really do appreciate your help.
Is this for all posts, or just ones created with Easy Forms?
OK....I will try the restaurant form again. I thought I was using the correct question hash. I tried yours and it worked fine so what are you selecting where it asks how the forum is to be submitted. Submit to thread? If so, since the script is choosing the thread ID, what are you just leaving it blank?
OK....I will try the restaurant form again. I thought I was using the correct question hash. I tried yours and it worked fine so what are you selecting where it asks how the forum is to be submitted. Submit to thread? If so, since the script is choosing the thread ID, what are you just leaving it blank?
OK.....thanks. I understand my problem now. Here is the php for my custom "location" question. As you can see, there are no question hashes. So I need to add question hashes to all of these answers. Do I just assign them manually?
OK.....thanks. I understand my problem now. Here is the php for my custom "location" question. As you can see, there are no question hashes. So I need to add question hashes to all of these answers. Do I just assign them manually?
No question hashs are to identify a question's output. Your custom question should be this:
For usa restaurant reviews form
PHP Code:
$answer = '<select name="'.$formbit[id].'">'; $answer .= '<option></option>'; $thisanswer = $q[$formbit[id]]; $threads = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "thread WHERE forumid = '111' ORDER BY title ASC"); while($row = $db->fetch_array($threads)) { $answer .= '<option value="'.$row[threadid].'"'; if ($row[threadid] == $thisanswer) { $answer .= ' selected="selected"'; } $answer .= '>'.htmlspecialchars($row[title]).'</option>'; } $answer .= '</select>';
WOW...I am so close now. Or I should say that YOU are so close to explaining it to a complete dummy. I replaced my drop down state selection question for the USA forum with that code. It works. The only thing now is that here is what I get posted.
Quote:
Name of Restaurant: test
Street Address: test
City: test
Location 32653
Website (Optional): -
Quality of Food: Bad
Quality of Service: Bad
Biker Friendly? Yes
Kind of Food? (Mexican, Chinese, etc.) tetst
Alcohol Served? Yes
Additional Comments: -
As you can see, it is posting the threadID for location instead of the actual state. I am not using custom output. Is the only way to correct this to use custom output with $qo