PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jun 18, 2018 10:07 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: So i need help
PostPosted: Sun May 13, 2018 8:52 pm 
Offline
Forum Newbie

Joined: Fri May 11, 2018 3:03 am
Posts: 1
Hello all

I Have a problem with postvars + ajax + firefox (note: no ajax post request)
I have a form which I refresh it via ajax, but when i submit the form, firefox can't read the POST variables (form fields values)
in IE is working just fine

code structure:
----------------------------------------------------------
if ($_POST['SUBMIT_FORM'] == "YES") {
$value_1 = $_POST['value1']; //empty in firefox
$value_2 = $_POST['value2']; //empty in firefox
}

<form name="MyForm">
<div id="RefreshArea">
<input type="text" id="value1" name="value1" />
<input type="text" id="value2" name="value2" />
<input type="submit" value="Submit Form" />
</div>
<input type="hidden" id="SUBMIT_FORM" name="SUBMIT_FORM" value="YES" />
</form>
-------------------------------------------------------------

when i change via ajax the 2 fields in "RefreshArea" block and submit the form, the 2 posted values are empty (using firefox)
i tried to fix the problem by moving the whole form in div tag in order to refresh it via ajax but steal nothing....

Can anyone help please
Thanks in advance


Top
 Profile  
 
 Post subject: Re: So i need help
PostPosted: Mon May 14, 2018 3:26 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13561
Location: New York, NY, US
Usually IE is wrong and Firefox is right, so something else is going on. Maybe try:
Syntax: [ Download ] [ Hide ]
<form name="MyForm" method="post">

_________________
(#10850)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot], orbdrums and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group