my dear wife volunteered me to create a web page for the shellharbour markets. Apparently its easy, even 11 yr old Emily can do it.
It isnt too bad I guess when there is so much open source stuff available on the web. However, I'm having a touch of bother combining it all
together.
I want to use includes directive so that I can create a template. Thats OK on its own. Allso wanted a rotating image. Which is OK on its own. However,
the includes means the file has to be saved as .shtml and the revolving image has to be saved as a php file. So how do I get them both to work at
once?
http://www.wscc.org.au/markets/index.php
http://www.wscc.org.au/markets/index.shtml
dont tell the car club I am using their webspace as my dev environment. The zipped files are here though if you want to run it on your own space you
will need to edit the config.php
I dont actually like the rotating image, because each time it loads the page bounces back to the top. I think I will go for a single random image, but
will still have the same php v shtml problem.
Easiest way is to junk the shtml and use PHP includes .
And you could do the rotating image via javascript to stop the page from reloading each time.
thanks guys, legendary.
I've now done it with Javascript and it works flawlessly. And the php include too. http://www.wscc.org.au/markets/index.php
Love this "VW" forum
shit this sites group know it all impressed
@$%&! *&#!
OK, now putting the email form in.
The code behind it al works fine. The appearance is pissing me off, namely textarea for the message body. I have 2 issues.
1. The textarea width. It doesnt matter how many columns I put in, its always the same width if the table is in a php page. in a plain html page, the
text area grows and shrinks as asked. Same problem in firefox and IE. WHY!?!?!?!
2. The wrapping. Doesnt matter what I do in firefox, it wont wrap at all. It just goes off on one long ong line, both in php and html forms. On IE
this doesnt happen,
Any ideas how to fix?
text area put in the code
wrapping in what part?
assume that my square brackets are angle brackets...
[td]
[textarea name="Query" rows="10" cols="50" wrap ="virtual"][/textarea]
[/td]
in Firefox the text in the query box just runs off to the right as in the 1st image. It does wrap to the next line in IE though. 2nd image. Doesnt
matter what I put in wrap attribute, or if I leave it out.
And I cant resize the width of the box. It is always this width no matter how many columns its set to.