Skip to main content
Inspiring
June 5, 2013
Answered

client side and server side code on the same form

  • June 5, 2013
  • 2 replies
  • 539 views

I have CFINPUT text on the form and the form shows the control on the form when I use preview browser.

As long as I have CF tag which is server side code the controls do not show on the form.

I thinkg I missing something when I have both client control and server code on the same form.

I would like to know how I can show controls on the form and running CF tag for server side code.

For example, I have a user name and password text box on the form.

I need validate user information and need run stored procedure when user click on login button.

I can have 2 text boxes on the form and it works.

As soon as I have CFSTOREDPROC tag then the form does not not show the controls.

It seems the form execute server sider code, but does not execute client side of code.

Your help and information is great appreciated,

Regards,

Iccsi,

    This topic has been closed for replies.
    Correct answer p_sim

    Is the form action attribute pointing to a different file or the same file? If it is different then you may not see the controls because it refers to a different file (action file). If it is the same file, then it might have a logic that prevents the form to be displayed after form submission.

    Attaching the code would be helpful. So, others or myself could assist you better.

    2 replies

    p_sim
    p_simCorrect answer
    Participating Frequently
    June 6, 2013

    Is the form action attribute pointing to a different file or the same file? If it is different then you may not see the controls because it refers to a different file (action file). If it is the same file, then it might have a logic that prevents the form to be displayed after form submission.

    Attaching the code would be helpful. So, others or myself could assist you better.

    iccsiAuthor
    Inspiring
    June 6, 2013

    Thanks for your information and helping,

    I have typo on SQL statement.

    Thanks again for helping,

    Regards,

    Iccsi