dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Contact form script that saves in database for customers second visit .

  1. #1
    Join Date
    May 2016
    Posts
    3

    Contact form script that saves in database for customers second visit .

    I am a taxi driver ( I pick up and drop clients from apartment buildings )
    I want my customers to be able to request pick up anytime from my website.
    I Already have a hosting account with php, sql and cpanel .. My webpage people can request a pickup online filing up a form with:
    Name:
    Address:
    phone number:
    message:

    Everything works fine but the problem is they have to fill up the form over and over every time they come back for service. This is to complicated for the customer because the form I using right now DOSEN'T SAVE any data.. They have to fill up their name address and phone number everytime they request a new service.
    I want to have a option were my customers don't have to fill up the form every time they come back to request a new service..I need the data to be saved on the server,..
    It will be great if customers can register an account the first time and chose a " User ID " with their information phone and address, So every time they come back they don't have to fill up the form over and over..The next time they come just have to login, and the form will be already filled up for them with their address, phone, etc..
    The only thing they just have to press the "Send" button and is over..!
    I dont really care how their information is stored, Im guessing it will be a database.
    I just need to get their request infprmation on my email inbox with their name,* address,* phone #* and few notes they want to send me,* if is possible..

    Iwill be happhy to have something like this:

    1= A new first time Customer Register an account with: NAME, PHONE#, EMAIL, HOME ADDRESS

    2= Same Customer comes back next time service, log-in using his/her user name or user ID (their cellphone can be used as user I'd for Login, no password necessary)

    3=Customer press a " request my service" button (write notes if any) and log-out

    4=I will get the request by email with: Name, address, email, phone, and any notes left by customer..
    No hassles that have put customers off on filling up forms every time they request a service. ( login, press send button and close the web page will take 10 seconds )
    With one time registration will be the end of headaches for me and for them..( I dont need a password, I need something easy for my customers, just a user name to login will be fine) their cellphone can be used as user I'd for Login, no password necessary.
    I can build websites on HTML but don't know PHP or SQL ..but I know is a very small job for someone with experience on database..
    How can this be possible ?*There are few awsome free applications online like jotform.com that provide wonderful tools, but none of the provide what i need.
    Someone told me, if I use a free shopping cart program like Opencart and customize or make some changes in the codes will do the job fine. It make perfect sense for me because a shopping cart have a user registration with name, address, phone number and also has a "place a order " button.I will get the order by email with their address, phone number and* for shipping..* In my case I don't have nothing to ship, but I will use their address information to pickup from their apartment. But shopping carts have tons of stuff that are useless for me, and I don't need it.

    Can someone help me writing very simple PHP or database that can do this..?
    I already have the contact feedback script, I just want the option to be saved in a small data base for three later use. Please someone let me know..
    NOTE: I don't know php, Java, sql database.. I know some html and I just copy and paste codes, but I' a pro. If someone give indications to create a a sql or php codes, I will not be able to do it.. Like I say, I just copy and paste codes.. Please someone help ..

  2. #2
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    3,702
    JavaScript object called... localStorage

    Assuming that your clients are using a web browser that is HTM5 compliant, that shouldn't be an issue.

    You would populate the form fields from those last set, you can google for HTML5 localStorage object and find plenty of tutorials on the use, THESE ARE NOT COOKIES so the data is permanent, you wouldn't believe the number of people who jump to the conclusion immediately that they are cookes, they are not... They persist until deleted.
    --> JavaScript Frameworks like JQuery, Angular, Node <-- ... and please remember to wrap any code you have in forum tags:-
    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  3. #3
    Join Date
    May 2016
    Posts
    3
    Ok, that's something new that I have to check.. I will post here any updates.

    In the mind time, anyone has any other ideas, that can help me..

  4. #4
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    3,702
    You use book marked URL's or rather your client bokkmarks a URL that is server generated and your server then issues the requested form from a record that holds the users last interaction details, eg..

    http://mydomain.com/user.php?id=1234

    where the user books that URL in to their browser.

    I would advise that you have some kind of PIN verification that the request is human otherwise you may find your service abused or hacked and your wasting time and not earning...
    --> JavaScript Frameworks like JQuery, Angular, Node <-- ... and please remember to wrap any code you have in forum tags:-
    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

  5. #5
    Join Date
    May 2016
    Posts
    3
    The problem is... I have a webapp made for android and iPhone, I invite people to download to their phones..
    I was reading on the internet that Web app don't support or is not a %100 webbrowser. If I use a Web app , the local storage script is not going to work because Web dosent support a full Web browser. .

  6. #6
    Join Date
    May 2016
    Posts
    3
    Hello,

    I have checked your requirement and I can assist you with my quality services. I have a team of skilled PHP developers who can work on code to get teh desired output.

    Please add me on my Skype : cisin.angela for quick conversation.

    Looking forward for your response.

    Thanks & Regards
    Angela S.

  7. #7
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    3,702
    Quote Originally Posted by boyfrom75 View Post
    The problem is... I have a webapp made for android and iPhone, I invite people to download to their phones..
    I was reading on the internet that Web app don't support or is not a %100 webbrowser. If I use a Web app , the local storage script is not going to work because Web dosent support a full Web browser. .
    Check here: http://caniuse.com/#search=localstorage

    Then I would suggest that you program for localStorage, test if it is supported, your fall back is a user account on a database and use a URL with identifiers to identify the user account.
    --> JavaScript Frameworks like JQuery, Angular, Node <-- ... and please remember to wrap any code you have in forum tags:-
    [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]

    If you can't think outside the box, you will be trapped forever with no escape...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles