kalender Posted March 10, 2011 Share Posted March 10, 2011 Hi, Need some help here again. If you guys take a look at: http://83.233.5.191/crurre/index.php There is a field called "Personnummer". Fill this with: 440611-1890 Then press "Hämta personuppgifter" It will then fetch/recieve some personal data and fill the correct fields. But.. as you can see. The number disappear when the site reloads, but the info fills in which is good at least. So how do I solve this? The number have to stay in the "Personnummer" field without reloading the whole page and still fill in the info. <h1>Registrering</h1> <form action="index.php" method="post"> <div class="input text"> <label for="DataNum">Personnummer</label> <input type="text" name="personnr" id="data" value=""/> </div> <input type="submit" id="GetData" value="Hämta personuppgifter" /> Thats how the Personnummer (civic number) field and Hämta personuppgifter (get personal data) looks like. Hmm hope you guys know how to fix this.. Please write it all simply. Im probably the no1 newbie in here. Thanks in advance!! Regards, K Link to comment https://forums.phpfreaks.com/topic/230256-fetch-info-without-reloading-page-when-clicking-submit-button-ajax/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.