Error when submitting Form
Posted: 08 April 2008 12:06 PM   [ Ignore ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  133
Joined  2008-03-04

Hi,

I have a form that shows all the data and I can edit all the fields. The only problem is that when I click submit, I get an error:

Invalid GET Data - Array

Any suggestions?

Thanks.

Profile
 
 
Posted: 08 April 2008 12:09 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Forrest,

Can I see what your whole template code looks like? smile

 Signature 
Profile
 
 
Posted: 08 April 2008 12:14 PM   [ Ignore ]   [ # 2 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  133
Joined  2008-03-04

It wouldn’t fit in the window so I have attached it as a file.

Thanks!

File Attachments
Forrest_edit_form.php.zip  (File Size: 2KB - Downloads: 64)
Profile
 
 
Posted: 09 April 2008 06:24 AM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  133
Joined  2008-03-04

Good morning. I am hoping there is some good news on this today. This one thing will enable me to (and you) to have a life again.

Thanks,

Forrest

Profile
 
 
Posted: 09 April 2008 06:46 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Forrest,

You’ll need to make these revisions:

Line 32 - Remove <form>
Line 122 - Remove</form>

Form tags are already generated by the exp:weblog:entry_form tag smile

Secondly, if the template you’re “returning” to has a weblog:entries loop on it (to display the updated entry), make sure you make this revision as well:

Line 36 - Add /{entry_id} to your return parameter

 Signature 
Profile
 
 
Posted: 09 April 2008 06:56 AM   [ Ignore ]   [ # 5 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  133
Joined  2008-03-04

Pie Man,

Perfect. Problem solved.

Thank you!

Profile