Jump to content

Form button issue


lew14

Recommended Posts

I am working with a script and there is an error with the reply code in the admin support.php.  When I put in reply information and click the the check box for submit reply and close this ticket now and then the submit to reply or if I  click the  submit reply button alone; the button will not respond.  Can someone help me with the actual code to get the check box and the the submit to reply button to work?

 

[attachment deleted by admin]

Link to comment
Share on other sites

Below is the code in the support.php for the submit to reply button and the close ticket now button.

 

echo"<p>";
    echo"      <form method=post>";
    echo" <p align=\"center\">Reply To This Ticket:</p>";
    echo"<p align=\"center\"><textarea rows=\"15\" cols=\"40\" name=\"reply\" cols=\"20\"></textarea><br></p>";
    echo"<center>";
    echo"<center><input type=\"checkbox\" name=\"ticketstatus\" value=\"Closed\"> Submit Reply And Close This ";
    echo"Ticket Now<p>";
    echo"<input type=hidden name=\"id\" value=\"$id\">";
    echo"<input type=hidden name=\"origid\" value=\"$origid\">";
    echo"<input type=hidden name=\"timesubmitted\" value=\"$timesubmitted\">";
    echo"<input type=hidden name=\"memberid\" value=\"$memberid\">";
    echo"<input type=\"hidden\" name=\"admpage\" value=\"support\">";
    echo"<input type='hidden' name='adm_passwd' value='$adm_passwd'>";
    echo"<input type=submit name=Submit class=\"form-button\" value=\"Submit Reply\">";
    echo"<input type=hidden name=action value=\"reply to ticket\">";
    echo"<p>";
    echo" </form></font><p></p>";
    echo"<p>      <form method=post>";
    echo" <p align=\"center\"></p>";
    echo"<p align=\"center\"></p>";
    echo"<center>";
    echo"<center><input type=\"hidden\" name=\"ticketstatus\" value=\"Closed\">If the ticket is resolved and you'd like to close it without an additional reply, click the following button to close it now.<p>";
    echo"<input type=hidden name=\"id\" value=\"$id\">";
    echo"<input type=hidden name=\"origid\" value=\"$origid\">";
    echo"<input type=hidden name=\"timesubmitted\" value=\"$timesubmitted\">";
    echo"<input type=hidden name=\"memberid\" value=\"$memberid\">";
    echo"<input type=\"hidden\" name=\"admpage\" value=\"support\">";
    echo"<input type='hidden' name='adm_passwd' value='$adm_passwd'>";
    echo"<input type=submit name=Submit class=\"form-button\" value=\"Close Ticket Now\">";
    echo"<input type=hidden name=action value=\"close ticket now\">";
    echo"<br>";
    echo"        </p>";

 

It will not allow me to reply to ticket or reply and the close ticket.  The button will not respond to either action.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.