Jump to content

Coding Conundrum (Need Help Guys)

So Guys, i am developing a admin area where i can view, edit, remove and create customers and invoices. I have got most of it done however the final thing I would love to have is the edit screen display the original content to edit not have to re write everything (View photos for better understanding)

 

here is a high quality mock up of what i would love :D http://prntscr.com/8kykud

 

i know how to input the sql data into the values of the inputs but not sure how to set a php variable without refreshing the page and via a text box and button config like in the photo.

 

any questions please reply

Link to comment
https://linustechtips.com/topic/457021-coding-conundrum-need-help-guys/
Share on other sites

Link to post
Share on other sites

That looks really nice. For the edit invoice form though, see if you can put it into a table maybe so it looks a bit neater. Apart from that, loving the professional-like interface.

 

For the PHP stuff, on my server I keep the data persistent with a SQLite database. I use ajax (asynchronous javascript and xml - basically javascript does web requests in the background) to load up pages in the backgound which return plaintext for Javascript to parse and handle.

For your application, when the user opens the edit window, you could have ajax request a PHP page with the invoice ID, which would return data for that ID from the database. Javascript would then parse that data and fill the fields accordingly.

Speedtests

WiFi - 7ms, 22Mb down, 10Mb up

Ethernet - 6ms, 47.5Mb down, 9.7Mb up

 

Rigs

Spoiler

 Type            Desktop

 OS              Windows 10 Pro

 CPU             i5-4430S

 RAM             8GB CORSAIR XMS3 (2x4gb)

 Cooler          LC Power LC-CC-97 65W

 Motherboard     ASUS H81M-PLUS

 GPU             GeForce GTX 1060

 Storage         120GB Sandisk SSD (boot), 750GB Seagate 2.5" (storage), 500GB Seagate 2.5" SSHD (cache)

 

Spoiler

Type            Server

OS              Ubuntu 14.04 LTS

CPU             Core 2 Duo E6320

RAM             2GB Non-ECC

Motherboard     ASUS P5VD2-MX SE

Storage         RAID 1: 250GB WD Blue and Seagate Barracuda

Uses            Webserver, NAS, Mediaserver, Database Server

 

Quotes of Fame

On 8/27/2015 at 10:09 AM, Drixen said:

Linus is light years ahead a lot of other YouTubers, he isn't just an average YouTuber.. he's legitimately, legit.

On 10/11/2015 at 11:36 AM, Geralt said:

When something is worth doing, it's worth overdoing.

On 6/22/2016 at 10:05 AM, trag1c said:

It's completely blown out of proportion. Also if you're the least bit worried about data gathering then you should go live in a cave a 1000Km from the nearest establishment simply because every device and every entity gathers information these days. In the current era privacy is just fallacy and nothing more.

 

Link to post
Share on other sites

That looks really nice. For the edit invoice form though, see if you can put it into a table maybe so it looks a bit neater. Apart from that, loving the professional-like interface.

 

For the PHP stuff, on my server I keep the data persistent with a SQLite database. I use ajax (asynchronous javascript and xml - basically javascript does web requests in the background) to load up pages in the backgound which return plaintext for Javascript to parse and handle.

For your application, when the user opens the edit window, you could have ajax request a PHP page with the invoice ID, which would return data for that ID from the database. Javascript would then parse that data and fill the fields accordingly.

HI so it would be possible to have  text input and button which when pressed fill out the below text fields with the data from the input invoice id without refreshing the page? a link to a example would be great!

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×