Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:36:47+00:00 2026-06-08T12:36:47+00:00

I have a register form, and I use a script to transform a location

  • 0

I have a register form, and I use a script to transform a location to it’s latitude and longitude, I’m using lorenzsell / Geocoded-Autocomplete (https://github.com/lorenzsell/Geocoded-Autocomplete/blob/master/README)

It works like a charm, if I fill in the address, then the input fields in my form with the id
filter_lat and filter_lng are filled with the correct coordinates.

So I was hoping that if I send this to a register form located in register.php,
that it would see these coordinates. But it doesnt.. everything else is defined, only the filter_lat and filter_lng arent. though these are filled in automatically, does this have to do something with it?

    <form method="POST" action="register.php">
                                    <table>
                                    <tr>
                                        <td>
                                            Email: <br/><input type="email" name="email" class="focussed_input" size="15" /><br>
                                        </td>
                                        <td>
                                            Password: <br/><input type="password" name="password" class="focussed_input" size="15" /><br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Name:<br/><input type="text" name="name" class="focussed_input" size="15" /><br />
                                        </td>
                                        <td>
                                            Age: <br/><input type="text" name="age" class="focussed_input" size="15" /><br />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        Address:<br/><input type=text id="mapaddress" class="focussed_input" /><br/>
                                        </td>
                                        <td>
                                            <input type="text" id="filter_lat" style="" />                                                                                                                  
                                            <input type="text" id="filter_lng" style="" />
                                            <input type="submit" value="I'm ready!" class="button_inverse" style="padding-left: 23px; padding-right:23px; margin-top:11px;" />
                                        </td>
                                    </tr>
                                </table>

                                </form>

that’s the form,
and the register.php code:

<?php
echo $_POST['filter_lat'];
echo "include";
include("config.php");
echo "test";
if(isset($_POST["email"])&& isset($_POST["password"]) && isset($_POST["name"]) && isset($_POST["age"])){
    echo"na isset";
    $email = htmlentities(mysql_real_escape_string($_POST['email']));
                if(mysql_num_rows(mysql_query("SELECT * FROM users WHERE email ='$email';")) > 0){
                    echo "email already used";

                }
                else{
                    $password = hash('sha512', $salt . mysql_real_escape_string($_POST['password']));
                    $name = htmlentities(mysql_real_escape_string($_POST['name']));
                    $age = htmlentities(mysql_real_escape_string($_POST['age']));
                    $lat = htmlentities(mysql_real_escape_string($_POST['filter_lat']));
                    $lng = htmlentities(mysql_real_escape_string($_POST['filter_lng']));
                    $id = '';

                    mysql_query("INSERT INTO users (id, email, password, name, age, lat, lng, type) VALUES ('$id', '$email', '$password', '$name', '$age', '$lat', '$lng', '0');") or die(mysql_error());
                    echo "Account creation successful!";
                }
}


?>

anybody used lorenzsell’s autofiller before? or someone knows how to fix this issue?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:36:49+00:00Added an answer on June 8, 2026 at 12:36 pm

    Change the id of filter_lat and filter_lng to name. It should look something like this –

     <input type="text" name="filter_lat" style="" />                                                                                                                  
     <input type="text" name="filter_lng" style="" />
    

    You are retrieving data with $_POST at server side, but you can’t retrieve data without name. So basically, you were trying to retrieve data filter_lat which doesn’t exist.

    Attribute id is mostly ment for CSS and javascript/jQuery

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a main form with a register and a few subforms. I'm using
I made register form where you have to put in all your personal info.
I have two links with classes (login-form and register-form) relevant to their target forms
I have a form where my users can register to my site. They fill
I have a form, where user can register their personal information for a club,and
I have a user registration Form. If a new User register their account in
I have this website (C#/ASP.NET) with a form where the user can register for
In my web application i have registration form, when user register i want to
I have a Create new account page. The form is in page named Register.php
I want to make something like http://www.djangosnippets.org/accounts/register/ using django..the register form. I am new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.