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
https://forums.phpfreaks.com/topic/250484-form-button-issue/
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
https://forums.phpfreaks.com/topic/250484-form-button-issue/#findComment-1285174
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.