Link to home
Start Free TrialLog in
Avatar of Ted Penner
Ted PennerFlag for United States of America

asked on

Store data in HTML or PHP

I have this nifty builder at quackit.com that builds my HTML table and page content for me as shown here http://screencast.com/t/ctP2KMAqX.  What I would like to do now is select a company from a list so that the cell adjacent to it will show the information stored about it.

Assistance is greatly appreciated.
SOLUTION
Avatar of Loganathan Natarajan
Loganathan Natarajan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Ted Penner

ASKER

Yeah so Company1 might have some data and every time it is selected, we would want the data to appear beside it.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well that's what I was basically wondering.  Are there free visual builders online for PHP or Jquery (not sure what that is?) the way there is for HTML?
I have the beginnings of the table here frugalmule.com/table/.  Basically, I want to either select or write-in a company on the left and have any data associated with it appear on the right.  When I enter new data, it should be saved.

What's the best approach here?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes.  I think so anyway.

Here is what I have so far http://frugalmule.com/table/ and below is the source.  What I must do is STORE data next to the appropriate selection (i.e. company A, B, or C respectively).
<table align="center" border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
	<tbody>
		<tr>
			<td>Company</td>
			<td>Note</td>
			<td style="text-align: center;">Done</td>
		</tr>
		<tr>
			<td><select multiple="true"><option selected="selected" value="">Company A</option><option selected="selected" value="">Company B</option><option selected="selected" value="">Company C</option></select></td>
			<td>This is the note that I want to add to and show each time company A is selected.&nbsp; If nothing is selected, then nothing should show up here.</td>
			<td style="text-align: center;"><input type="checkbox" /></td>
		</tr>
		<tr>
			<td><select multiple="true"><option selected="selected" value="">Company A</option><option selected="selected" value="">Company B</option><option selected="selected" value="">Company C</option></select></td>
			<td>This is the note that I want to add to and show each time company B is selected.&nbsp; If nothing is selected, then nothing should show up here.</td>
			<td style="text-align: center;"><input type="checkbox" /></td>
		</tr>
		<tr>
			<td><select multiple="true"><option selected="selected" value="">Company A</option><option selected="selected" value="">Company B</option><option selected="selected" value="">Company C</option></select></td>
			<td>This is the note that I want to add to and show each time company B is selected.&nbsp; If nothing is selected, then nothing should show up here.</td>
			<td style="text-align: center;"><input type="checkbox" /></td>
		</tr>
	</tbody>
</table>

Open in new window

Typically this would be data from a data base.  PHP and MySQL are the most frequently combined solutions for data base driven web sites, and these are the technologies that underpin WordPress.  The data would be placed in divs that would be hidden at page-load time.  Then when the select options are fired, the hidden div that matches the select would be toggled into view.  You can do this with jQuery.  Good learning resources for jQuery are available here:
http://learn.jquery.com/
http://code.tutsplus.com/courses/30-days-to-learn-jquery
http://www.amazon.com/Learning-jQuery-Edition-Jonathan-Chaffer/dp/1849516545
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you for your suggestions.  I see that your page works beautifully, but outside of Wordpress.  Any assistance on implementing into Wordpress would be very appreciate http://screencast.com/t/L2D6HjAk
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It's very very close.  Somehow though, the page comes up without a dropdown (all choices are listed instead of just one) and when you un-select and select a new letter it stays with what it I put in.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial