473,378 Members | 1,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

how to add more fields and display database records in same page

hello guys..
i am new with javascripting and really lack of knowledge about it..
my lecturer asking me to insert or add the value that i already enter in the filed into a table locate really below the field in the same page..to get u guys clear about my problem i give a situation..example when someone want to enter more than one group member in the form but the form only provide one field to insert the group member..they have to click the button [ADD] then it will display whatever user enter inside the field into a table and let the field empty back so that they can enter another group member.
help me to get and idea to solve this problem!!!!i really appreciate it!!!
Sep 19 '06 #1
3 1834
hello frens..
my default form is
<input type=textbox name=objective><input type="button" name="add" value="ADD">
when the user press the button ADD,whatever insert in the field will be appear in the table exactly below the field in the same page.
what i'm doing is insert the value in the field into a table in the database and call back the value by "select * from XXX"..my problem is the result appear at other new page.how should i code to make the result display at the same page..
add how should i clear the field after press button ADD.
Sep 21 '06 #2
ronverdonk
4,258 Expert 4TB
To get a better understanding of what you exactly have done so far (and still want to do), please show your code (AND PLEASE DO IT WITHIN PHP or CODE TAGS!!). That way we can see (hopefully) , what can be done.

Ronald :cool:
Sep 21 '06 #3
tbb9216
16
you have a few options:

1) AJAX!!! this is your best option, it will dynamically reload the section of the script you want updated and nothing more. if you are clueless on it, hit up google or get friendly with prototype.js.

2) <object> tags. this is if you are using strict dtds, i HIGHLY doubt you are...

3) iframes - an early form of ajax. works like framesets, but embeded in a non frameset. it will reload the iframe and nothing more. not as handy-dandy as ajax however.

all these will do is make a server call to the php file that does the mysql calls and return the information you need and put it where you want it

good luck,
-tim
Sep 22 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Jason | last post by:
Let's say I have an html form with 20 or 30 fields in it. The form submits the fields via POST to a php page which updates a table in a database with the $_POST vars. Which makes more sense? ...
12
by: Patrick | last post by:
I have two ASP pages payment.asp: For customers to fill in payment/card details (pre-populating details if details submitted were invalid and user had to re-fill in details) confirmorder.asp:...
3
by: CSDunn | last post by:
Hello, I have a situation with MS Access 2000 in which I need to display report data in spreadsheet orientation (much like a datasheet view for a form). If you think of the report in terms of what...
5
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.