By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

begining to work with php for my site

P: n/a
I've been playing around with some various designs for my site and
have come up with one that I like quite well. Drawback is, the
javascript portion kind of sucks in the fact that nothing happens
unless JS is enabled.

I've been looking at various tutorials and see that PHP is somewhat
similar to BASIC, and other languages. So some of it I already know.

What I've designed is a basic 3 column layout.
Left column is the main choices, primarily an alphabet listing. Which
could easily be put in a drop down box. Right now it's just for
testing.

The middle column has the crux of the data in numerous text boxes.
Each text box contains a link which when clicked on, shows another
page in the 3rd column which for now, is an iframe.

My idea is, basically have the data for the text boxes stored in an
array, rather than on a page itself, and then displaying the called
content in a division cell rather than an iframe.

This way, loading of the initial page should be faster and the data
could be manipulated in other ways easier.

I know of a site for html templates, oswd.org {i think}.
Is there a similar site for php?

If anyone can clue me on how to go about doing this I'd appreciate it.

Aug 30 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
richard wrote:
I've been playing around with some various designs for my site and
have come up with one that I like quite well. Drawback is, the
javascript portion kind of sucks in the fact that nothing happens
unless JS is enabled.

I've been looking at various tutorials and see that PHP is somewhat
similar to BASIC, and other languages. So some of it I already know.

What I've designed is a basic 3 column layout.
Left column is the main choices, primarily an alphabet listing. Which
could easily be put in a drop down box. Right now it's just for
testing.

The middle column has the crux of the data in numerous text boxes.
Each text box contains a link which when clicked on, shows another
page in the 3rd column which for now, is an iframe.

My idea is, basically have the data for the text boxes stored in an
array, rather than on a page itself, and then displaying the called
content in a division cell rather than an iframe.

This way, loading of the initial page should be faster and the data
could be manipulated in other ways easier.

I know of a site for html templates, oswd.org {i think}.
Is there a similar site for php?

If anyone can clue me on how to go about doing this I'd appreciate it.

PHP is server side, and the only thing the browser sees is what you send
in the html. Data stored in an array in PHP never reaches the browser
unless you output it.

And once the data is displayed by the browser, your PHP script has
already completed it's work and terminated.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 31 '08 #2

P: n/a
On Sat, 30 Aug 2008 21:29:13 -0400, Jerry Stuckle
<js*******@attglobal.netwrote:
>richard wrote:
>I've been playing around with some various designs for my site and
have come up with one that I like quite well. Drawback is, the
javascript portion kind of sucks in the fact that nothing happens
unless JS is enabled.

I've been looking at various tutorials and see that PHP is somewhat
similar to BASIC, and other languages. So some of it I already know.

What I've designed is a basic 3 column layout.
Left column is the main choices, primarily an alphabet listing. Which
could easily be put in a drop down box. Right now it's just for
testing.

The middle column has the crux of the data in numerous text boxes.
Each text box contains a link which when clicked on, shows another
page in the 3rd column which for now, is an iframe.

My idea is, basically have the data for the text boxes stored in an
array, rather than on a page itself, and then displaying the called
content in a division cell rather than an iframe.

This way, loading of the initial page should be faster and the data
could be manipulated in other ways easier.

I know of a site for html templates, oswd.org {i think}.
Is there a similar site for php?

If anyone can clue me on how to go about doing this I'd appreciate it.


PHP is server side, and the only thing the browser sees is what you send
in the html. Data stored in an array in PHP never reaches the browser
unless you output it.

And once the data is displayed by the browser, your PHP script has
already completed it's work and terminated.
I understand the basics. What I have now is basically a 100kb html
text file. I figure the user doesn't really need to see the entire
list unless they want to see it. That would speed up loading.

I used "Liberty BASIC" to do the repetitive html stuff and I could
easily do the same thing in PHP.
Aug 31 '08 #3

P: n/a
richard wrote:
On Sat, 30 Aug 2008 21:29:13 -0400, Jerry Stuckle
<js*******@attglobal.netwrote:
>richard wrote:
>>I've been playing around with some various designs for my site and
have come up with one that I like quite well. Drawback is, the
javascript portion kind of sucks in the fact that nothing happens
unless JS is enabled.

I've been looking at various tutorials and see that PHP is somewhat
similar to BASIC, and other languages. So some of it I already know.

What I've designed is a basic 3 column layout.
Left column is the main choices, primarily an alphabet listing. Which
could easily be put in a drop down box. Right now it's just for
testing.

The middle column has the crux of the data in numerous text boxes.
Each text box contains a link which when clicked on, shows another
page in the 3rd column which for now, is an iframe.

My idea is, basically have the data for the text boxes stored in an
array, rather than on a page itself, and then displaying the called
content in a division cell rather than an iframe.

This way, loading of the initial page should be faster and the data
could be manipulated in other ways easier.

I know of a site for html templates, oswd.org {i think}.
Is there a similar site for php?
The PHP manual is here:

http://www.php.net/manual/en/
>>>
If anyone can clue me on how to go about doing this I'd appreciate it.

PHP is server side, and the only thing the browser sees is what you send
in the html. Data stored in an array in PHP never reaches the browser
unless you output it.

And once the data is displayed by the browser, your PHP script has
already completed it's work and terminated.

I understand the basics.
There's some doubt about that.

PHP, as Jerry has pointed out, does not run in the browser. To do what I
believe you want, you'd need either javascript, iframes, or frames. And
since you've ruled all those out (with the exception of frames, and I'll
rule that out for you), you are left with nothing except to load a whole
new page. That's not necessarily a bad thing. Loading content in a
"division cell" or more accurately, a div, uses javascript (AJAX) and
some server processing.

Jeff

What I have now is basically a 100kb html
text file. I figure the user doesn't really need to see the entire
list unless they want to see it. That would speed up loading.

I used "Liberty BASIC" to do the repetitive html stuff and I could
easily do the same thing in PHP.
Aug 31 '08 #4

P: n/a
richard wrote:
On Sat, 30 Aug 2008 21:29:13 -0400, Jerry Stuckle
<js*******@attglobal.netwrote:
>richard wrote:
>>I've been playing around with some various designs for my site and
have come up with one that I like quite well. Drawback is, the
javascript portion kind of sucks in the fact that nothing happens
unless JS is enabled.

I've been looking at various tutorials and see that PHP is somewhat
similar to BASIC, and other languages. So some of it I already know.

What I've designed is a basic 3 column layout.
Left column is the main choices, primarily an alphabet listing. Which
could easily be put in a drop down box. Right now it's just for
testing.

The middle column has the crux of the data in numerous text boxes.
Each text box contains a link which when clicked on, shows another
page in the 3rd column which for now, is an iframe.

My idea is, basically have the data for the text boxes stored in an
array, rather than on a page itself, and then displaying the called
content in a division cell rather than an iframe.

This way, loading of the initial page should be faster and the data
could be manipulated in other ways easier.

I know of a site for html templates, oswd.org {i think}.
Is there a similar site for php?

If anyone can clue me on how to go about doing this I'd appreciate it.

PHP is server side, and the only thing the browser sees is what you send
in the html. Data stored in an array in PHP never reaches the browser
unless you output it.

And once the data is displayed by the browser, your PHP script has
already completed it's work and terminated.

I understand the basics. What I have now is basically a 100kb html
text file. I figure the user doesn't really need to see the entire
list unless they want to see it. That would speed up loading.

I used "Liberty BASIC" to do the repetitive html stuff and I could
easily do the same thing in PHP.
That's fine. But since you don't want to use javascript (or AJAX, which
uses javascipt) or frames, you have no choice but to load the entire page.

If you only send part of the data, you must have a way to get the rest
of the data. This means either javascript (AJAX), frames (which will
reload part of a page) or a reload of the entire page.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Aug 31 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.