Forum Moderators: coopster

Message Too Old, No Replies

Trip Report PHP

         

outdoorxtreme1

5:02 pm on Oct 18, 2005 (gmt 0)

10+ Year Member



I am a newbie to PHP. How would I go about creating a trip report submission.

Any help would be greatly appreciated. I want to create trip reports for my canoe club webpage.

Thanks in advance.

Dustin

[edited by: jatar_k at 5:28 pm (utc) on Oct. 18, 2005]
[edit reason] no urls thanks [/edit]

outdoorxtreme1

5:22 pm on Nov 4, 2005 (gmt 0)

10+ Year Member



I have commas in.

jatar_k

5:32 pm on Nov 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



why the javascript function?
why not just good old html?

echo '<strong>Photo Slideshow Link: </strong>
<a href="',$row['photolink'],'" target="_new">',$row['photolink'],'</a><br>';

outdoorxtreme1

5:36 pm on Nov 4, 2005 (gmt 0)

10+ Year Member



I want it to open in a new window and have the new window resize to the users current screen size. Is there a way I can have it display '' around the url in the ( ) brackets?

<!--

var str = "left=0,screenX=0,top=0,screenY=0";

if (window.screen) {
var ah = screen.availHeight - 30;
var aw = screen.availWidth - 10;
str += ",height=" + ah;
str += ",innerHeight=" + ah;
str += ",width=" + aw;
str += ",innerWidth=" + aw;
} else {
str += ",resizable"; // so the user can resize the window manually
}

function fullScreen(theURL) {
return window.open(theURL, '', str);
}

// -->

jatar_k

5:46 pm on Nov 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



when you use your original syntax and view source on the page what is the difference between what displays and what youo want it to look like?

comparing the 2 should give you your answer

outdoorxtreme1

5:52 pm on Nov 4, 2005 (gmt 0)

10+ Year Member



the code will work like this but I can't click on the link

onclick="fullScreen(http://www.myphotoalbum.com);"

I need ' ' around the address for it to work. Like this

onclick="fullScreen('http://www.myphotoalbum.com');"

When I put the ' ' around the address it gives me a parse error

Anyango

5:57 pm on Nov 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



onclick="fullScreen(\'http://www.myphotoalbum.com\');"

ergophobe

6:15 pm on Nov 4, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




why the javascript function?
why not just good old html?

I almost said the same, but he wants JS to change client display, so that's correct. The thing I was thinking, though, is that once he works out his basic problems, he might want to sniff for JS being enabled and show/hide the link accordingly.

In the following:

[us3.php.net...]

read the sections on "Useful functions" (which covers concatenation) and the sections on "single-quoted" and "double-quoted" regarding escaping quote marks to avoid syntax errors caused by improper quote matching.

outdoorxtreme1

7:57 pm on Nov 15, 2005 (gmt 0)

10+ Year Member



I know I asked this before but I couldn't find the message. Is there a way to make an administrator login so that certain trip logs could be edited?
This 158 message thread spans 6 pages: 158