Hi to all on here

Bar discussions . Talk about everything not only php !. Guests are welcome here , forum registration is not required.

Moderators: macek, egami, gesf

PeterJ
New php-forum User
New php-forum User
Posts: 5
Joined: Thu Jul 14, 2011 7:59 am

Hi to all on here

Postby PeterJ » Thu Jul 14, 2011 8:10 am

Hi, I am new to the forum and very new to coding. I'm learning as much as I can and searching for everything. I often try to use scripts and then change them, to get them to behave the way I want. Then, when I've worked out how all the pieces work, I start to write my own code, to do the same functions.

I am stuck on a project that I would like to make. I would like a drop down list box where each list box would be in two sections. The first being static text, to describe the list box and the second being editable text, coming from mysql and being returned to mysql when edited.

For example.
Drop down title: Edit Text:
First box. English: English text to be edited.
Second box. Spanish: Spanish text to be edited.
Third box. Greek: Greek text to be edited.

Is this possible.

Pete

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Hi to all on here

Postby egami » Fri Jul 15, 2011 5:34 am

Welcome, and yes

PeterJ
New php-forum User
New php-forum User
Posts: 5
Joined: Thu Jul 14, 2011 7:59 am

Re: Hi to all on here

Postby PeterJ » Fri Jul 15, 2011 6:21 am

Thanks egami,

I think there could be a problem with your keyboard. I got the "Welcome" part but when you explained exactly how I can do this, your message stopped after "Yes".

Could you please retype this part? 8)

Peter

User avatar
Nullsig
php-forum Fan User
php-forum Fan User
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: Hi to all on here

Postby Nullsig » Fri Jul 15, 2011 7:57 am

It's actually a problem with your browser. I see the explanation plain as day.

It says:
You need to utilize PHP, HTML, and JavaScript (AJAX and events) to do this.


To elaborate further I suggest checking out This Site

That would be the basic structure of the form you are talking about. You would need to add "onBlur" events that would call the AJAX function that would execute a PHP script to write to the MySQL database and then refresh the division that contains the listbox.

Also, this should be posted in PHP General OR JavaScript sections not in Free Time

PeterJ
New php-forum User
New php-forum User
Posts: 5
Joined: Thu Jul 14, 2011 7:59 am

Re: Hi to all on here

Postby PeterJ » Sat Jul 16, 2011 9:28 am

Thanks Nullsig, I was on a friends pc and he uses IE, that might explain it?

I will re post this on Javascript, as you have suggested. I have made a sample, maybe you could have a look and let me know if I am heading in the right direction.

Thanks

Peter

User avatar
Nullsig
php-forum Fan User
php-forum Fan User
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: Hi to all on here

Postby Nullsig » Mon Jul 18, 2011 7:53 am

Thanks Nullsig, I was on a friends pc and he uses IE, that might explain it?



/facepalm

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: Hi to all on here

Postby egami » Mon Jul 18, 2011 9:43 am

ha!

User avatar
Nullsig
php-forum Fan User
php-forum Fan User
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: Hi to all on here

Postby Nullsig » Mon Jul 18, 2011 9:46 am

I wish there was a "Bash.org" for forums... this would be on there in a heart beat

souravabe
New php-forum User
New php-forum User
Posts: 1
Joined: Tue Aug 02, 2011 1:41 am

Re: Hi to all on here

Postby souravabe » Tue Aug 02, 2011 1:55 am

Hi,
Peter I'm also newbies like you.....
Hope, Everyone help me to develop my skill on PHP and web designing....
Now, I'm just learning the basic of PHP from...
Kyle Stephen Gush a renowned PHP developer specialist from San Diego


Return to “Free time”

Who is online

Users browsing this forum: No registered users and 2 guests