ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Failing miserably to implement Safecracker and can't upgrade EE just now

February 21, 2014 7:13am

Subscribe [2]
  • #1 / Feb 21, 2014 7:13am

    Rob Lyons

    34 posts

    I’m attempting to create a form so that judges taking part in a schools debating competition can input their details directly into EE rather than sending in paper forms that have to be input. The trouble is, when I hit submit, the form page just reloads blank and no entry is created in EE. What am I doing wrong?

    Here’s the barebones form:

    http://www.debatingmatters.com/rob_sandpit/people_entry_form/

    The site is running EE 2.5.5. I would upgrade, but it’s a mission-critical time of year and the site has extremely elaborate relationships set up that would no doubt require quite a lot of fiddling with to fix after an upgrade. Therefore, I need to use Safecracker for now.

    To test the theory, I’ve created a channel called ‘test_people’. I’ve installed Safecracker and created an Anonymous user in the ‘Guest’ member group. The form displays okay, even when on a different browser where I am not logged in.

    Here’s the barebones code I’m trying to test:

    <html>
    <head><title>Judges entry form</title></head>
    <body>
    Judge’s entry form
    {exp:safecracker channel="test_people" return="http://www.debatingmatters.com" logged_out_member_id="21"}

    <fieldset>

    Your information

     
      <label>Full name</label>
      <input type=“text” name=“title” id=“title” value=”{title}” size=“50” maxlength=“100” >
     
     
      <label>First name</label>
      <input type=“text” class=“text” name=”{person_first_name}”/>
     
     
      <label>Last name</label>
      <input type=“text” class=“text” name=”{person_last_name}”/>
     
    </fieldset>

      <input type=“submit” class=“submit-job” value=“Submit Job” />

    Date
    <input type=“text” name=“entry_date” value=“entry_date” maxlength=“23” size=“25”></p>
    {/exp:safecracker}
    </body>
    </html>

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases