Not sending $_POST infor to server
In HTML code have below: <form name='ReGenHtml' action='Gen2.php' method='post' enctype='multipart/form-data'>
https://files.hostinger.com/Input | Descrition 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
Giải pháp được chọn
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
Đọc câu trả lời này trong ngữ cảnh 👍 0Tất cả các câu trả lời (2)
Giải pháp được chọn
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
I must have fixed it by accident and forgot to refresh my browser. Sorry