[PHP] functions and a href

2003-03-03 Thread Martin Johansson
Hi I want to call a function logout() inside an a href statement: a href=\?= logout() ?\logout/a ?php function logout() { } ? but this doesnt work.. how shall I do it /M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: functions and a href

2003-03-03 Thread Martin Johansson
Ok to make it simplier, this is what I wanna do! ?php echo a href=logout();Logout/A; function logout() { . } ? How do I do it!!! /M Hi I want to call a function logout() inside an a href statement: a href=\?= logout() ?\logout/a ?php function logout() { } ? but this

Re: [PHP] Re: functions and a href

2003-03-03 Thread Martin Johansson
it logs somone out of a session.. Ray [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] does the function logout() log someone out of a session, or does it return the url for where they go to logout? and what about it isn't working? On Monday 03 March 2003 16:32, you wrote: Ok to

[PHP] Re: Missing images

2002-11-26 Thread Martin Johansson
I had this problem when I stored my images on another webserver, and linked the images with the whole adress like img src=http://somewhere/image.gif; I solved the problem by copying the images to the same webserver that views the page. The last webserver was to slow to replay that it had the

Re: [PHP] store images in mysql tables

2002-11-26 Thread Martin Johansson
Yes you can store images in a mysql table. But you will have to create a new binary database. You can read here how it works: http://www.phpbuilder.com/columns/florian19991014.php3 It is a easy to understand text. /Martin Justin French [EMAIL PROTECTED] skrev i meddelandet [EMAIL

[PHP] Newbie: ereg

2002-11-25 Thread Martin Johansson
I still havent found a site that shows what I need. I dont think php.net explain how ereg works. I only want to publish stuff from the stringvariable $text thats inside tags looking like this FONT COLOR=#8f8f15This shall be visible/FONT or FONT COLOR=#007f7fThis shall be visible too/FONT thanks

[PHP] HTML page and php

2002-11-21 Thread Martin Johansson
How do I get a html page into a string variable in php? Isnt there any function working like this: $homepage = getHtmlPage(http://www.myhomepage.com/index.html); /Newbie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Is there a way to express php variables inside an echo ' '. I want something like this to work: echo 'a href=$address'; I know I can write it like this: echo 'a href='; echo $address; echo ''; But Its to hard to read the code like this. /Martin -- PHP General Mailing List

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
But the problem is that Im doin it inside a while loop. So I need to echo it. /mj Niklas lampén [EMAIL PROTECTED] skrev i meddelandet 025801c21c1d$55d16210$ba93c5c3@Niklas">news:025801c21c1d$55d16210$ba93c5c3@Niklas... Shorter version would be a href=?=$address? And this is not bad coding, it

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
? a href=page?=$i?.htmPage ?=$i?/a ? }; ? Niklas -Original Message- From: Martin Johansson [mailto:[EMAIL PROTECTED]] Sent: 25. kesäkuuta 2002 10:56 To: [EMAIL PROTECTED] Subject: Re: [PHP] function echo ' ' But the problem is that Im doin it inside a while loop. So I need to echo

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Thanks all for your replies! For my code, this is the best way to view variables in echo functions ? echo 'a href='.$address.''; ? It is nice and easy to read while going through a lot of code. /mj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Hi! Cookies makes me go AGHH!! Please help me with this: I am setting a cookie like this in my loginscript: setcookie(devProcCookie, cookie value.|.time(), 31536000); // Set cookie header(Location: inside.php); exit; So far it works! But when I go to the inside.php page that looks like

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
//Note this will only work if the global variables in your php.ini files are turned on... I have no idea why it can't read the index $devProcCookie in the Cookies Array if you figure it out though please post up... Kondwani Martin Johansson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTE

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Another thing! when I look in netscape/preferences/privacysecurity/cookies/view Stored Cookies.. there is no cookie for my website.. isnt that strange? /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Setting Cookies in netscape and explorer?

2002-06-21 Thread Martin Johansson
Yes!!! I got it to work! The problem was the expirationdate in the cookie: setcookie(devProcTailorCookie, cookie value.|.time(), 31536000); Now I set it like this: setcookie(devProcTailorCookie, cookie value.|.time(), time()+10); But now it doesnt work in explorer. But I would be able to