Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Not sending $_POST infor to server

  • 2 답장
  • 1 이 문제를 만남
  • 3 보기
  • 최종 답변자: Col_Boogie

more options

In HTML code have below: <form name='ReGenHtml' action='Gen2.php' method='post' enctype='multipart/form-data'>

https://files.hostinger.com/
InputDescrition of input
<input type='file' name='Orginal' required>html file generated by open office
<input type='text' name='title' maxlength='40'> Title (label) for Browser tab
<input type='text' name='Page_w' maxlength='8' value='8.5in' onchange='chk_w()' required> * Width of printed page as 8.5in (8.5 inches) or 21cm (210 centimeters = 210 milimeters)
<input type='text' name='Font_sz' maxlength='4' value='10' onchange='chk_Fs()' required>pt * Default font size
<input type='text' name='font_n' onchange='chk_f()' required='true'> * default font (may enter as first choice, second, choice, etc.
<input type='submit' value='Regenerate' onclick='return verify()'> Click when ready to regenerate html code

On Server, have PHP code below: $Font_Sz=$_POST['Font_sz'].'pt'; $font_n=$_POST['font_n'];

The following errors are reported: Notice: Undefined index: Font_sz in /home/u548328498/public_html/Howard/Open/Gen2.php on line 18 Notice: Undefined index: font_n in /home/u548328498/public_html/Howard/Open/Gen2.php on line 19

This error does not occur on IE or Chrome

In HTML code have below: <form name='ReGenHtml' action='Gen2.php' method='post' enctype='multipart/form-data'> <table> <tr> <th>Input</th><th>Descrition of input</th></tr> <tr> <td><input type='file' name='Orginal' required></td><td>html file generated by open office</td></tr> <tr> <td><input type='text' name='title' maxlength='40'></td> <td>Title (label) for Browser tab</td></tr> <tr> <td><input type='text' name='Page_w' maxlength='8' value='8.5in' onchange='chk_w()' required></td> <td>* Width of printed page as 8.5in (8.5 inches) or 21cm (210 centimeters = 210 milimeters)</td></tr> <tr> <td><input type='text' name='Font_sz' maxlength='4' value='10' onchange='chk_Fs()' required>pt</td> <td>* Default font size</td></tr> <tr> <td><input type='text' name='font_n' onchange='chk_f()' required='true'></td> <td>* default font (may enter as <i>first choice, second, choice, etc.</i></td><tr>https://files.hostinger.com/ <tr> <td><input type='submit' value='Regenerate' onclick='return verify()'></td> <td>Click when ready to regenerate html code</td></tr> </table> On Server, have PHP code below: $Font_Sz=$_POST['Font_sz'].'pt'; $font_n=$_POST['font_n']; The following errors are reported: Notice: Undefined index: Font_sz in /home/u548328498/public_html/Howard/Open/Gen2.php on line 18 Notice: Undefined index: font_n in /home/u548328498/public_html/Howard/Open/Gen2.php on line 19 This error does not occur on IE or Chrome

선택된 해결법

Could you check Firefox's developer tools for client-side errors, and to see what parameters are being sent to the server.

You could check for messages in Firefox's Web Console. You can open the Web Console in the lower part of the tab using either:

  • "3-bar" menu button > Web Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • (Windows) Ctrl+Shift+k

Then reload the page in the upper part of the tab and watch for error or security messages. (The lines with blue triangles generally are not significant unless you suspect a style rule problem.) Anything that sounds like it could be relevant?

Switch to the Network mini-tab (Network Monitor) and check the box to Persist Logs. This will allow you to retain log data after submitting the form.

Submit the form, and click the POST on the Network Monitor to show the applicable request data on the right side. The "Params" panel should show what Firefox sent with the request.

Also, check the Console mini-tab for any new messages.

Anything useful?

Do you want to provide a link to a page demonstrating the problem?

See also: Where to go for developer support

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (2)

more options

선택된 해결법

Could you check Firefox's developer tools for client-side errors, and to see what parameters are being sent to the server.

You could check for messages in Firefox's Web Console. You can open the Web Console in the lower part of the tab using either:

  • "3-bar" menu button > Web Developer > Web Console
  • (menu bar) Tools > Web Developer > Web Console
  • (Windows) Ctrl+Shift+k

Then reload the page in the upper part of the tab and watch for error or security messages. (The lines with blue triangles generally are not significant unless you suspect a style rule problem.) Anything that sounds like it could be relevant?

Switch to the Network mini-tab (Network Monitor) and check the box to Persist Logs. This will allow you to retain log data after submitting the form.

Submit the form, and click the POST on the Network Monitor to show the applicable request data on the right side. The "Params" panel should show what Firefox sent with the request.

Also, check the Console mini-tab for any new messages.

Anything useful?

Do you want to provide a link to a page demonstrating the problem?

See also: Where to go for developer support

more options

I must have fixed it by accident and forgot to refresh my browser. Sorry