Jump to content

form rediraction


runnerjp

Recommended Posts

im using ajax tabs so that users can update different area of their account

like this..

 

ajaxtab.jpg

the thing is when i fill in the textbox and hit submit it wont update tthe db with any of the dat... but if i go to the tab page directly so www.mysite.com/thetabpage then it will carry out the update..

 

 

ok i have tried using both action="<?=$_SERVER["REQUEST_URI"]?>" and action="<?=$_SERVER["PHP_SELF"]?>" in my form to redirect me to my tabbed page but it just doesnt update the database with the values on hobbies.php

 

if any code is need i will add right away...can any 1 help?

Link to comment
https://forums.phpfreaks.com/topic/147183-form-rediraction/
Share on other sites

ok if it helps i added

<?php echo "<pre>".print_r($_POST,true)."</pre>\n";  ?>

at the top of my page and

 

if i use the tab (http://www.runningprofiles.com/membe...hp?page=update) and enter something it just shows Array

(

)

 

 

but if i go to the page directly (http://www.runningprofiles.com/membe...ab/hobbies.php) it says this

 

Array

(

[about_me] => test

[submitted] => 1

[submit] => Submit

)

 

 

so basicly when its doing it through the ajax script its not submitting the form?

Link to comment
https://forums.phpfreaks.com/topic/147183-form-rediraction/#findComment-772929
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.