Jump to content

This topic is 7955 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hello.

I have been trying unsuccessfully to add a row to my portal.

Here is my code:

<HTML>

<HEAD>

<TITLE>Register</TITLE>

<LINK REL=stylesheet HREF="http://myserver:591/OnlineReg/online.css" TYPE="text/css">

</HEAD>

<FORM ACTION="FMPro" METHOD="post">

<INPUT TYPE="hidden" NAME="-DB" VALUE="CE_Events">

<INPUT TYPE="hidden" NAME="-lay" VALUE="Online">

<INPUT TYPE="hidden" NAME="-Format" VALUE="personal_info.htm">

<INPUT TYPE="hidden" NAME="-Error" VALUE="p_error.htm">

<INPUT TYPE="hidden" NAME="-Token.3" VALUE="">

<INPUT TYPE="hidden" NAME="-Token.4" VALUE="">

<BODY CLASS="first">

<P>

<TABLE>

<TR>

<TD>Enter Personal ID:<INPUT TYPE="text" NAME="CE_Registrations::Personal_ID.0" VALUE="" SIZE=10></TD>

<TD>Enter Password:<INPUT TYPE="text" NAME="CE_Registrations::Personal_OP.0" VALUE="" SIZE=10></TD>

</TR>

</TABLE>

<BR>

<BR>

<FORM METHOD="LINK" ACTION="personal_info.htm">

<INPUT TYPE="submit" NAME="-Add" Value="Complete Registration">

</FORM>

</FORM>

</BODY>

</HTML>

Can any tell me what I'm doing wrong.......

Thanks! Donna

Posted

Donna,

"-add" does not exist. You would need to use either "-edit" or "-new" with

<INPUT TYPE="text" NAME="CE_Registrations::Personal_ID.0" VALUE="" SIZE=10>

to create a new Portal row.

All the best.

Garry

Posted

I've just noticed that you have a nested Form:

<FORM METHOD="LINK" ACTION="personal_info.htm">

<INPUT TYPE="submit" NAME="-Add" Value="Complete Registration">

</FORM>

This will not work. Just use the "Submit" with a "-edit" or "-new".

All the best.

Garry

Posted

Thanks Garry! As usual, something I just overlooked. I have reworked this now but it still is not working.

Perhaps my problem is that I'm trying to pass a token into a portal.

Here's my revised code:

<HTML>

<HEAD>

<TITLE>Register</TITLE>

<LINK REL=stylesheet HREF="http://209.174.169.66:591/OnlineReg/online.css" TYPE="text/css">

</HEAD>

<FORM ACTION="FMPro" METHOD="post">

<INPUT TYPE="hidden" NAME="-DB" VALUE="CE_Registrations">

<INPUT TYPE="hidden" NAME="-lay" VALUE="Online_R">

<INPUT TYPE="hidden" NAME="-Format" VALUE="thank_you.htm">

<INPUT TYPE="hidden" NAME="-Error" VALUE="p_error.htm">

<INPUT TYPE="hidden" NAME="-Token.3" VALUE="2003-TR24">

<INPUT TYPE="hidden" NAME="-Token.4" VALUE="OCLC/ILL: The New Web Interface">

<INPUT TYPE="hidden" NAME="-Token.5" VALUE="6057">

<INPUT TYPE="hidden" NAME="-Token.6" VALUE="XYZ123">

<BODY CLASS="first">

<P>

<TABLE>

<TR>

<TD>Personal ID: <INPUT TYPE="text" NAME="CE_Registrations::Personal_ID.0" VALUE="6057" SIZE=10></TD>

</TR>

<TR>

<TD>Password: <INPUT TYPE="text" NAME="CE_Registrations::Personal_OP.0" VALUE="XYZ123" SIZE=10></TD>

</TR>

<TR>

<TD>Event ID: <INPUT TYPE="text" NAME="CE_Registrations::Event_ID.0" VALUE="2003-TR24" SIZE=10></TD>

</TR>

<TR>

<TD>Event Name: <INPUT TYPE="text" NAME="CE_Registrations::Event_Name" VALUE="OCLC/ILL: The New Web Interface" SIZE=45></TD>

</TR>

</TABLE>

<BR>

<BR>

<FORM METHOD="LINK" ACTION="thank_you.htm">

<INPUT TYPE="submit" NAME="-New" Value="Complete Registration">

</FORM>

</FORM>

</BODY>

</HTML>

Any suggestions?

Thanks! Donna

Posted

To start with, you cannot have nested Forms! E.G.:

<BR>

<FORM METHOD="LINK" ACTION="thank_you.htm">

<INPUT TYPE="submit" NAME="-New" Value="Complete Registration">

</FORM>

</FORM>

</BODY>

Make it look like this:

<BR>

<INPUT TYPE="submit" NAME="-New" Value="Complete Registration">

</FORM>

</BODY>

It seems to me that you are trying to add a new record to the file "CE_Registrations". However, the Portal has the same name which suggests that the Portal exists in another file, not "CE_Registrations".

Try this:

<HTML>

<HEAD>

<TITLE>Register</TITLE>

<LINK REL=stylesheet HREF="http://209.174.169.66:591/OnlineReg/online.css" TYPE="text/css">

</HEAD>



<FORM ACTION="FMPro" METHOD="post">

<INPUT TYPE="hidden" NAME="-DB" VALUE="CE_Registrations">

<INPUT TYPE="hidden" NAME="-lay" VALUE="Online_R">

<INPUT TYPE="hidden" NAME="-Format" VALUE="thank_you.htm">

<INPUT TYPE="hidden" NAME="-Error" VALUE="p_error.htm">

<INPUT TYPE="hidden" NAME="-Token.3" VALUE="2003-TR24">

<INPUT TYPE="hidden" NAME="-Token.4" VALUE="OCLC/ILL: The New Web Interface">

<INPUT TYPE="hidden" NAME="-Token.5" VALUE="6057">

<INPUT TYPE="hidden" NAME="-Token.6" VALUE="XYZ123">



<BODY CLASS="first">

<P>

<TABLE>

  <TR>

                <TD>Personal ID:  <INPUT TYPE="text" NAME="Personal_ID" VALUE="6057" SIZE=10></TD>

 </TR>

        <TR>

                <TD>Password:  <INPUT TYPE="text" NAME="Personal_OP" VALUE="XYZ123" SIZE=10></TD>

  </TR>

        <TR>

                <TD>Event ID:  <INPUT TYPE="text" NAME="Event_ID" VALUE="2003-TR24" SIZE=10></TD>

 </TR>

        <TR>

                <TD>Event Name: <INPUT TYPE="text" NAME="Event_Name" VALUE="OCLC/ILL: The New Web Interface" SIZE=45></TD>

      </TR>

</TABLE>

<BR>

<BR>        

<INPUT TYPE="submit" NAME="-New" Value="Complete Registration">

</FORM>

</BODY>

</HTML>

Hope this helps.

Garry

This topic is 7955 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.