[PHP] Customize link

2011-05-05 Thread Michael Simiyu
/addfilecat_id=5 so that when i access the link it has one of the categories in the drop down selected..reason is i dont want users to see the different types of categories So i guess my question is how to configure a meu item in a drop down to be automatically selected in a link

Re: [PHP] Customize link

2011-05-05 Thread Daniel Brown
On Thu, May 5, 2011 at 18:10, Michael Simiyu simiyu.mich...@gmail.com wrote: So i guess my question is how to configure a meu item in a drop down to be automatically selected in a link... ?php $cat_ids = array(1,3,5,7,13,15,24,36,81,92); echo 'select name=categories'.PHP_EOL; foreach

RE: [PHP] Customize link

2011-05-05 Thread admin
To: php-general@lists.php.net Subject: [PHP] Customize link Hello, Here is the scenario I have a form with the folloing fields i. Title ii. Category (This is a drop down with a list of categories which have id's - am using wordpress ) iii. upload file field now what i want to do

Re: [PHP] Customize link

2011-05-05 Thread Michael Simiyu
Dan, thanks for the reply.this is the code that shows/lists the categories ?php $cats = $download_taxonomies- get_parent_cats(); if (!empty($cats))

Re: [PHP] Customize link

2011-05-05 Thread Jim Lucas
On 5/5/2011 3:38 PM, Michael Simiyu wrote: Dan, thanks for the reply.this is the code that shows/lists the categories you need to make the following check look at $_GET instead of $_POST. Or, I hate to suggest it, you can use $_REQUEST. It includes $_GET, $_POST, and others all in one

Re: [PHP] Removing link on the fly, but leave link text

2010-09-01 Thread Karl DeSaulniers
On Aug 31, 2010, at 3:06 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 15:01 -0500, Karl DeSaulniers wrote: On Aug 31, 2010, at 2:32 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: a

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Ashley Sheridan
On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: a href=http://website.com/shop/ index.php?username='.$username.'http://website.com/shop/index.php? username='.$username.'/a. This link will take you to your web browser to

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Karl DeSaulniers
On Aug 31, 2010, at 2:32 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: a href=http://website.com/shop/ index.php?username='.$username.'http://website.com/shop/index.php? username='.$username.'/a.

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Karl DeSaulniers
On Aug 31, 2010, at 2:34 PM, Joshua Kehn wrote: On Aug 31, 2010, at 3:31 PM, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: a href=http://website.com/shop/ index.php?username='.$username.'http://website.com/shop/ index.php?username='.$username.'/a. This

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Ashley Sheridan
On Tue, 2010-08-31 at 15:01 -0500, Karl DeSaulniers wrote: On Aug 31, 2010, at 2:32 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: a href=http://website.com/shop/

Re: [PHP] Removing link on the fly, but leave link text

2010-08-31 Thread Karl DeSaulniers
On Aug 31, 2010, at 3:06 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 15:01 -0500, Karl DeSaulniers wrote: On Aug 31, 2010, at 2:32 PM, Ashley Sheridan wrote: On Tue, 2010-08-31 at 14:31 -0500, Karl DeSaulniers wrote: Hi, Say I have some text. $text = 'You can logon here: a

Re: [PHP] opening link in new window

2010-07-24 Thread Paul M Foster
On Sat, Jul 24, 2010 at 01:08:49AM -0400, Robert Cummings wrote: On 10-07-24 12:58 AM, Paul M Foster wrote: On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote: Hello, I've got a page with an external link. I'd like to open it in a new window, but i'm using the xhtml 1.0 strict dtd

Re: [PHP] opening link in new window

2010-07-24 Thread Robert Cummings
On 10-07-24 02:06 AM, Paul M Foster wrote: On Sat, Jul 24, 2010 at 01:08:49AM -0400, Robert Cummings wrote: On 10-07-24 12:58 AM, Paul M Foster wrote: On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote: Hello, I've got a page with an external link. I'd like to open it in a new

Re: [PHP] opening link in new window

2010-07-24 Thread Adam Richardson
On Sat, Jul 24, 2010 at 2:44 AM, Robert Cummings rob...@interjinn.comwrote: On 10-07-24 02:06 AM, Paul M Foster wrote: On Sat, Jul 24, 2010 at 01:08:49AM -0400, Robert Cummings wrote: On 10-07-24 12:58 AM, Paul M Foster wrote: On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote:

Re: [PHP] opening link in new window

2010-07-24 Thread tedd
At 2:06 AM -0400 7/24/10, Paul M Foster wrote: Or, wait. With javascript, you're hacking the DOM. If you put my PHP above in the file, the offending code will arrive at the client browser. Will the xhtml 1.0 deities cast you into the pit of hell if this happens? Paul A minor clarification,

Re: [PHP] opening link in new window

2010-07-24 Thread Robert Cummings
On 10-07-24 04:19 AM, Adam Richardson wrote: Code that resembled the below is how I used to open new windows before I started using jQuery Note, this completely avoids use of the target attribute. function wireNewWindows(){ if(document.getElementsByTagName){ var anchors =

Re[2]: [PHP] opening link in new window

2010-07-24 Thread Andre Polykanine
! messenger: andre.polykanine; ICQ: 191749952 Twitter: m_elensule - Original message - From: Robert Cummings rob...@interjinn.com To: Adam Richardson simples...@gmail.com Date: Saturday, July 24, 2010, 5:20:03 PM Subject: [PHP] opening link in new window On 10-07-24 04:19 AM, Adam Richardson

Re: Re[2]: [PHP] opening link in new window

2010-07-24 Thread Ashley Sheridan
Subject: [PHP] opening link in new window On 10-07-24 04:19 AM, Adam Richardson wrote: Code that resembled the below is how I used to open new windows before I started using jQuery Note, this completely avoids use of the target attribute. function wireNewWindows

Re: [PHP] opening link in new window

2010-07-24 Thread Adam Richardson
On Sat, Jul 24, 2010 at 10:20 AM, Robert Cummings rob...@interjinn.comwrote: On 10-07-24 04:19 AM, Adam Richardson wrote: Code that resembled the below is how I used to open new windows before I started using jQuery Note, this completely avoids use of the target attribute. function

Re: [PHP] opening link in new window

2010-07-23 Thread Shreyas Agasthya
I am not sure how PHP can help here. I am sure there must be a way out. With JavaScript, it s certainly possible. You can try window.open() to make this happen. It can accept a lot of parameters and a google search should give you a lot of answers. --Shreyas On Fri, Jul 23, 2010 at 10:58 AM,

Re: [PHP] opening link in new window

2010-07-23 Thread Peter Lind
On 23 July 2010 12:23, Shreyas Agasthya shreya...@gmail.com wrote: I am not sure how PHP can help here. I am sure there must be a way out. With JavaScript, it s certainly possible. You can try window.open() to make this happen. It can accept a lot of parameters and a google search should give

Re: [PHP] opening link in new window

2010-07-23 Thread Paul M Foster
On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote: Hello, I've got a page with an external link. I'd like to open it in a new window, but i'm using the xhtml 1.0 strict dtd so this isn't possible. I was wondering if php could pull this off? Failing that, and not really wanting to

Re: [PHP] opening link in new window

2010-07-23 Thread Robert Cummings
On 10-07-24 12:58 AM, Paul M Foster wrote: On Fri, Jul 23, 2010 at 01:28:23AM -0400, David Mehler wrote: Hello, I've got a page with an external link. I'd like to open it in a new window, but i'm using the xhtml 1.0 strict dtd so this isn't possible. I was wondering if php could pull this off?

[PHP] opening link in new window

2010-07-22 Thread David Mehler
Hello, I've got a page with an external link. I'd like to open it in a new window, but i'm using the xhtml 1.0 strict dtd so this isn't possible. I was wondering if php could pull this off? Failing that, and not really wanting to go there, would javascript work for this? Thanks. Dave. -- PHP

[PHP] webpage link validation

2009-09-21 Thread Al
What's the simplest way to test if a link is valid? I've got a script that throughly checks the dns, etc. But, I'd also like to check to see if the user has inputted a valid link to a webpage. File_exists() and etc. seem to have a lot of caveats. E.g., foo.com/bar/file.txt Most things I've

Re: [PHP] webpage link validation

2009-09-21 Thread Ashley Sheridan
On Mon, 2009-09-21 at 14:42 -0400, Al wrote: What's the simplest way to test if a link is valid? I've got a script that throughly checks the dns, etc. But, I'd also like to check to see if the user has inputted a valid link to a webpage. File_exists() and etc. seem to have a lot of

RE: [PHP] webpage link validation

2009-09-21 Thread Andrea Giammarchi
Several ways that I can think of: * use the file_get_contents() which like you said, could be overkill * shell out to wget to retrieve just the headers for the path. You'd be looking for a 200 return code, which indicates the URI exists. *

[PHP] a link in php generated mail

2008-10-03 Thread Sjef
Hallo, I have an link in a php generated email that does not work. I tried adding http:// but with no result. It says the link is blocked. I created the mail with html formatting. I use pear email. Is there anything I have to consider to make this work? Thanks, Sjef -- PHP General Mailing

Re: [PHP] a link in php generated mail

2008-10-03 Thread Richard Heyes
I have an link in a php generated email that does not work. I tried adding http:// but with no result. It says the link is blocked. I created the mail with html formatting. I use pear email. Is there anything I have to consider to make this work? Set the content type of the email to text/html

Re: [PHP] a link in php generated mail

2008-10-03 Thread Per Jessen
Sjef wrote: Hallo, I have an link in a php generated email that does not work. I tried adding http:// but with no result. It says the link is blocked. I created the mail with html formatting. Who is It (in It says the link is blocked.) and how does it say it is blocked? /Per Jessen, Zürich

[PHP] Re: link with database

2008-03-11 Thread Shawn McKenzie
Shawn McKenzie wrote: Sofia Jacob (CA) wrote: Hi, I want to create a link that get the name and the link from the database. The problem is that I get the bullets created with li but not the link, here is my code and the result: ?php function do_html_URL($url, $name) { // output

[PHP] Re: link with database

2008-03-11 Thread Shawn McKenzie
Sofia Jacob (CA) wrote: Hi, I want to create a link that get the name and the link from the database. The problem is that I get the bullets created with li but not the link, here is my code and the result: ?php function do_html_URL($url, $name) { // output URL as link and br

Re: [PHP] Can't link image directory?

2007-05-18 Thread Tijnema !
On 5/18/07, Haig (Home) [EMAIL PROTECTED] wrote: Hi everyone, I have a simple script that scans a directory and will output a list of sub directories as a hyperlink. Script is working fine. Only problem I have is that if there is a subdirectory called Image, my script won't see it. If I rename

Re: [PHP] Can't link image directory?

2007-05-18 Thread Daniel Brown
On 5/18/07, Tijnema ! [EMAIL PROTECTED] wrote: On 5/18/07, Haig (Home) [EMAIL PROTECTED] wrote: Hi everyone, I have a simple script that scans a directory and will output a list of sub directories as a hyperlink. Script is working fine. Only problem I have is that if there is a

Re: [PHP] Can't link image directory?

2007-05-18 Thread Tijnema !
On 5/18/07, Haig Dedeyan [EMAIL PROTECTED] wrote: Sorry for the lack of information. I also was wrong about the subdirectory name. It's Images and not Image The workstation is running WinXP Pro while PHP 5 Apache 2 are on Suse 10.1. I also installed apache2 php5 on a WinXP Pro system and

Re: [PHP] Can't link image directory?

2007-05-18 Thread Daniel Brown
At last, why are you using file:// in your link? You're using a webserver to display the contents, but file:// links to files on the local hard drive. Unless the server is running on the same machine you're visiting the site with, it will fail to point to the right file. I'm not positive,

Re: [PHP] Can't link image directory?

2007-05-18 Thread Haig Dedeyan
Sorry for the lack of information. I also was wrong about the subdirectory name. It's Images and not Image The workstation is running WinXP Pro while PHP 5 Apache 2 are on Suse 10.1. I also installed apache2 php5 on a WinXP Pro system and the same problem occurs. I have tried 7

RE: [PHP] Can't link image directory?

2007-05-18 Thread Haig Dedeyan
shows me the subdirectories that exist in the directory I configure the script for, but no further levels of subdirectories as it stands. That could be modified *very* easily, but that's a different matter. On my system, it shows /images without a problem, which more or less adds

[PHP] Can't link image directory?

2007-05-17 Thread Haig (Home)
Hi everyone, I have a simple script that scans a directory and will output a list of sub directories as a hyperlink. Script is working fine. Only problem I have is that if there is a subdirectory called Image, my script won't see it. If I rename that subdirectory to anything else, it will see

[PHP] Re: link counting

2007-04-07 Thread itoctopus
Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. a href='www.externaldomainnamehere.com'External/a is not a URL that will take someone externally. Below is the

Re: [PHP] Re: link counting

2007-04-07 Thread Tijnema !
On 4/7/07, itoctopus [EMAIL PROTECTED] wrote: Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. a href='www.externaldomainnamehere.com'External/a is not a URL that

Re: [PHP] Re: link counting

2007-04-07 Thread Sebe
Tijnema ! wrote: On 4/7/07, itoctopus [EMAIL PROTECTED] wrote: Use the function is_url (note that I haven't written it) instead to check if the link is a URL. Not only your method may count some links twice, but it will count wrong URLs also. a href='www.externaldomainnamehere.com'External/a

[PHP] Re: link counting

2007-04-06 Thread Jonesy
On Fri, 06 Apr 2007 09:01:20 -0400, Sebe wrote: i thought of an idea of counting the number of links to reduce comment spam. unfortunately my methods is not reliable, i haven't tested it yet though.. anyone have maybe a better solution using some regexp? $links = array('http://',

Re: [PHP] mail link problem with php echo statement

2006-03-23 Thread Richard Lynch
On Wed, March 22, 2006 10:29 pm, Mark wrote: How can i make this email from a database a hyperlink so it doesnt show the email address--i have tried many things but i keep getting errors. At the moment it just shows the email (no link) thanks ?php //get comp_id $query

[PHP] mail link problem with php echo statement

2006-03-22 Thread Mark
How can i make this email from a database a hyperlink so it doesnt show the email address--i have tried many things but i keep getting errors. At the moment it just shows the email (no link) thanks ?php //get comp_id $query = mysql_query(SELECT * FROM comps WHERE name = '$comp_name

Re: [PHP] mail link problem with php echo statement

2006-03-22 Thread Chris
Mark wrote: How can i make this email from a database a hyperlink so it doesnt show the email address--i have tried many things but i keep getting errors. At the moment it just shows the email (no link) thanks ?php //get comp_id $query = mysql_query(SELECT * FROM comps WHERE name

[PHP] php link question

2005-11-28 Thread Ron Zimmerman
I need a function that links immediately to a different page - without waiting for the user to click on anything. I'm not sure if link() does that or some other function. Thanks, Ron Z -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php link question

2005-11-28 Thread Robert Cummings
On Tue, 2005-11-29 at 00:28, Ron Zimmerman wrote: I need a function that links immediately to a different page - without waiting for the user to click on anything. I'm not sure if link() does that or some other function. header() in PHP: header( 'Location:

Re: [PHP] php link question

2005-11-28 Thread jonathan
not totally sure what you're asking but look at header (location: ) On Nov 28, 2005, at 9:28 PM, Ron Zimmerman wrote: I need a function that links immediately to a different page - without waiting for the user to click on anything. I'm not sure if link() does that or some other

[PHP] Download Link !

2005-03-25 Thread [EMAIL PROTECTED]
buys a template a download link must be sent to his/her email address, and must be active for only 2 or 3 days.. Anyone have an idea how to start or where to start? Any link, any tutorial? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Download Link !

2005-03-25 Thread Ken
for selling website templates, the templates are uploaded to a certain folder, when someone buys a template a download link must be sent to his/her email address, and must be active for only 2 or 3 days.. Anyone have an idea how to start or where to start? Any link, any tutorial? -- PHP General

Re: [PHP] Download Link !

2005-03-25 Thread maillists
On Friday 25 March 2005 14:25, [EMAIL PROTECTED] wrote: Hello, When I purchased a website template from templatemonster.com, they sent the download link to my email, this link was active for only 2 or 3 days then it became inactive. Now I'm writing a script for selling website templates,

RE: [PHP] Novice PHP Variable/Link Question

2004-09-17 Thread Gryffyn, Trevor
, September 16, 2004 6:02 PM To: revDAVE Cc: PHP Subject: Re: [PHP] Novice PHP Variable/Link Question On Thu, 16 Sep 2004 14:54:34 -0700, revDAVE [EMAIL PROTECTED] wrote: How can I use a PHP variable as the destination for a link? ? $mylink = 'thispage.htm' a href=thispage.htmgo

Re: [PHP] Novice PHP Variable/Link Question

2004-09-17 Thread Jason Wong
On Friday 17 September 2004 21:49, Gryffyn, Trevor wrote: Alternately, you can do it the lazy way like me: a href=?=$url??=$url?/a ? Echo $url; ? Is the same as... ?=$url? I also think that's a little easier to read. But that's my preference in style. The use of this syntax is

[PHP] Novice PHP Variable/Link Question

2004-09-16 Thread revDAVE
How can I use a PHP variable as the destination for a link? ? $mylink = 'thispage.htm' a href=thispage.htmgo here/a With var...? How do I write this? a href=??? $mylink ???go here/a ? -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] Check out some great Domain Names at:

Re: [PHP] Novice PHP Variable/Link Question

2004-09-16 Thread Greg Donald
On Thu, 16 Sep 2004 14:54:34 -0700, revDAVE [EMAIL PROTECTED] wrote: How can I use a PHP variable as the destination for a link? ? $mylink = 'thispage.htm' a href=thispage.htmgo here/a With var...? How do I write this? a href=??? $mylink ???go here/a a href=?php echo $url;??php

Re: [PHP] Novice PHP Variable/Link Question

2004-09-16 Thread revDAVE
On 9/16/04 3:01 PM, Greg Donald [EMAIL PROTECTED] wrote: a href=?php echo $url;??php echo $url;?/a It worked great - thanks a lot. -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] Check out some great Domain Names at: http://www.domains4days.com -- PHP General Mailing List

[PHP] Manage link.

2003-12-18 Thread Vincent M.
Hello, Is there any way to manage links in an array and transform them. For example, I have this text in the database: --- Software Support Media, produc-ers of the International PHP Conference, are pleased to announce a new monthly version of their print publication. For more information, you

Re: [PHP] Manage link.

2003-12-18 Thread Evan Nemerson
On Thursday 18 December 2003 01:37 pm, Vincent M. wrote: Hello, Is there any way to manage links in an array and transform them. For example, I have this text in the database: php.net/preg_replace --- Software Support Media, produc-ers of the International PHP Conference, are pleased to

Re: [PHP] Manage link.

2003-12-18 Thread Vincent M.
This one is perfect: $text = preg_replace( /(?!a href=\)((http|ftp)+(s)?:\/\/[^\s]+)/i, a style=\text-decoration:underline\ href=\\\0\URL/a, $text ); :D Evan Nemerson wrote: On Thursday 18 December 2003 01:37 pm, Vincent M. wrote: Hello, Is there any way to manage links in an array and

RE: [PHP] Session Link Problems

2003-12-12 Thread Ford, Mike [LSS]
On 12 December 2003 00:03, Steve Turner wrote: Hi, I am having a problem with sessions. On my testing machine my script works perfectly. However on the remote server it tries to pass the session id in the url even though I am accepting cookies. It is messing up all my links since it

Re: [PHP] Session Link Problems

2003-12-12 Thread Peter Walter
Steve, As Mike said, I have a similar problem. I am using PHP 4.1.2. What release are you using? Peter Mike Ford wrote: On 12 December 2003 00:03, Steve Turner wrote: Hi, I am having a problem with sessions. On my testing machine my script works perfectly. However on the remote server it

[PHP] Session Link Problems

2003-12-11 Thread Steve Turner
Hi, I am having a problem with sessions. On my testing machine my script works perfectly. However on the remote server it tries to pass the session id in the url even though I am accepting cookies. It is messing up all my links since it puts PHPSESSID=6a4626fc1cde0fb228fcb3ebe5587ffd in front

[PHP] Re: link question

2003-10-23 Thread Richard Cook
nextpage.php?recordset=?php echo $recordset[id];? then use the value of recordset to link back to that information on the next page. Is that what you mean? Regards R Davy Campano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a php page that makes a table from data in a

[PHP] Using link to submit a form

2003-07-30 Thread Tyler Longren
Hi everyone, Can I replace Submit buttons on forms with a text button? I need to be able to click on a link: a href=index.php?option=editEdit/a and have it submit the form. The form only contains one field...does anyone know how to do this? I've been searching google for an answer, but

Re: [PHP] Using link to submit a form

2003-07-30 Thread andu
--On Wednesday, July 30, 2003 14:32:11 -0500 Tyler Longren [EMAIL PROTECTED] wrote: Hi everyone, Can I replace Submit buttons on forms with a text button? I need to be able to click on a link: a href=index.php?option=editEdit/a Something like: a href=javascript:

RE: [PHP] Using link to submit a form

2003-07-30 Thread Jennifer Goodie
Hi everyone, Can I replace Submit buttons on forms with a text button? I need to be able to click on a link: a href=index.php?option=editEdit/a and have it submit the form. The form only contains one field...does anyone know how to do this? I've been searching google for an answer,

RE: [PHP] Using link to submit a form

2003-07-30 Thread Matt Palermo
//Just use this javascript function... echo script LANGUAGE=\JavaScript\ !-- function LetsSubmit(where) { document.forms[0].action = where; document.forms[0].submit(); } //-- /script ; // Then output the submit link like this... echo a

[PHP] Re: Link acting as a submit button

2003-07-25 Thread daemorhedron
Another option might be to use the heredoc syntax, but having php echo your html is not the most effecient. Just FYI. http://ca.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to

[PHP] Re: Link acting as a submit button

2003-07-24 Thread DvDmanDT
Warning for /SCRIPT... It's also the ending for PHP you see... Shouldn't matter in this case, although, wouldn't suprise me at all if it was... -- // DvDmanDT MSN: [EMAIL PROTECTED] Mail: [EMAIL PROTECTED] Matt Palermo [EMAIL PROTECTED] skrev i meddelandet news:[EMAIL PROTECTED] I am trying to

RE: [PHP] automatic link execution after form submit

2003-04-04 Thread Jens von Pilgrim
Hallo, -Original Message- From: Fritz [mailto:[EMAIL PROTECTED] Sent: Saturday, March 29, 2003 8:26 PM Subject: [PHP] automatic link execution after form submit I am stuck on executing automaticaly a URL-string to be sent to a perl-script. 1) Redirect, using HTTP functionality

[PHP] automatic link execution after form submit

2003-03-29 Thread Fritz
Dear groupmembers. I am stuck on executing automaticaly a URL-string to be sent to a perl-script. Explanation: I have a form with one textfield. After submittung the form I get the variable $indicprop from that field. $indicprop should now be sent automaticaly within a query string of the sort:

Re: [PHP] dynamic link converter

2003-03-06 Thread electroteque
=\http\\3://\\4\\5\\6\ target=\_blank\\\7/a, $message ); ? But wouldn't it be easier just to do use a pattern like this /\[([^|]+)\|([^\]]+)/ which gets everything between [ and | (the URI) and | and ] (the link name)? Nik -- PHP General Mailing List (http://www.php.net

[PHP] dynamic link converter

2003-03-05 Thread electroteque
hi there i am trying tom preg_replace on a string enclosed in brackets to denote a dynamic link $message = [http://www.eletroteque.dyndns.org/index_html.php|Eletroteque Multimedia]; echo $message = preg_replace(/((http(s?):\/\/)|(www\.))([\w\.]+)([\/\w+\.]+)([\|\w+\.]+)\b/ i, a

Re: [PHP] dynamic link converter

2003-03-05 Thread Nik Makepeace
it be easier just to do use a pattern like this /\[([^|]+)\|([^\]]+)/ which gets everything between [ and | (the URI) and | and ] (the link name)? Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamic link converter

2003-03-05 Thread Nik Makepeace
On Thu, 2003-03-06 at 05:49, electroteque wrote: hi there i am trying tom preg_replace on a string enclosed in brackets to denote a dynamic link This works, if I understand you correctly: ?php $message = [http://www.eletroteque.dyndns.org/index_html.php|Eletroteque Multimedia];

Re: [PHP] Which link was selected?

2003-02-04 Thread Götz Lohmsnn
Leonard Burton schrieb: Greetings, You ought to make your link something like www.foo.com/products.php?autoid=105. and then make a query on your page that displays the pics based on an autoincrement number in your table. You ought to be able to make the code something like: //Display

RE: [PHP] Which link was selected?

2003-02-04 Thread Leonard Burton
Good Catch, Be just as an advisement besure to escape those quotes with a backslash \ Leonard. -Original Message- From: Götz Lohmsnn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 4:09 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Which link was selected? Leonard Burton

Re: [PHP] Which link was selected?

2003-02-04 Thread Goetz Lohmann
Leonard Burton schrieb: Good Catch, Be just as an advisement besure to escape those quotes with a backslash \ Leonard. yes, you are right, but I also prefer the way of ?php // do something here ? a href=go somwhereimg src=image.gif name=myname border=0/a ?php // do something

[PHP] Which link was selected?

2003-02-03 Thread Karina S
Hi, I put pictures from a database ont the page about my products. If the user click on a picture I want to give a detailed description about the product. But how can I get, which picture was selected? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Which link was selected?

2003-02-03 Thread Leonard Burton
All that stuff here; } else { include product_display_page.php; } I hope it helps. Leonard. -Original Message- From: Karina S [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 2:06 AM To: [EMAIL PROTECTED] Subject: [PHP] Which link

Re: [PHP] Anchor Link?

2002-11-11 Thread Ernest E Vogelsinger
At 19:06 11.11.2002, Doug Coning spoke out and said: [snip] http://www.galapagosstudios.com/test2/viewdesigns.php?pri=1sec=1sid=1#Ga rment It works, however, IE says there is an error on the page. I believe the error is probably with mixing the variables

[PHP] Re: Link for downloading?

2002-09-06 Thread nicos
First, to create a link thats just a a href=.. that point to the file. ie a href=file.zipfile/a Second, that depend of your windows's default configuration. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Alex Shi [EMAIL PROTECTED] a écrit dans

[PHP] Re: Link for downloading?

2002-09-06 Thread Alex Shi
Thanks...but how to use header() to generate such a download link? Alex [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... First, to create a link thats just a a href=.. that point to the file. ie a href=file.zipfile/a Second, that depend of your windows's

[PHP] count link clicks

2002-08-13 Thread victor
How do I count how many times a user clicks on a certain link? (and put it into and array or variable I guess). I want to be able to repeat a certain action on the same page as many times as the user clicks on the link($PHP_SELF). Thanks, - Vic

Re: [PHP] count link clicks

2002-08-13 Thread Rasmus Lerdorf
Write a link wrapper that you would use like this: a href=wrap.php/www.domain.com/path/file.html Then in wrap.php: ?php $link = substr($PATH_INFO,1); ... increment counter in database for $link ... header('Location: $link'); ? -Rasmus On Tue, 13 Aug 2002 [EMAIL PROTECTED

RE: [PHP] count link clicks

2002-08-13 Thread vic
PROTECTED] Subject: Re: [PHP] count link clicks Write a link wrapper that you would use like this: a href=wrap.php/www.domain.com/path/file.html Then in wrap.php: ?php $link = substr($PATH_INFO,1); ... increment counter in database for $link ... header('Location: $link

RE: [PHP] count link clicks

2002-08-13 Thread Rasmus Lerdorf
Really? That sounds more complicated than I think I need it to be, can't I use something like: 'a href='.$PHP_SELF.'?add_form='.$value.'' and somehow (this is what I need to know) get $value to increase in value as the user clicks on the link again and again... Nope, you would be fighting

RE: [PHP] count link clicks

2002-08-13 Thread vic
I have no database, this has to be done in PHP - Vic -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:05 PM To: vic Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks Really? That sounds more complicated

RE: [PHP] count link clicks

2002-08-13 Thread Rasmus Lerdorf
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 3:05 PM To: vic Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks Really? That sounds more complicated than I think I need it to be, can't I use something like: 'a href='.$PHP_SELF.'?add_form='.$value

RE: [PHP] count link clicks

2002-08-13 Thread victor
I think I'm on the right track with: ?php $i = $value++; // Show first link echo 'a href='.$PHP_SELF.'?add_form='.$value.' New paragraph /a /font'; // Isert form html into $data_fields variable $data_fields = 'html html blah blah a

RE: [PHP] count link clicks

2002-08-13 Thread Mike Dunlop
-Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:49 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] count link clicks Write a link wrapper that you would use like this: a href=wrap.php/www.domain.com/path/file.html

RE: [PHP] count link clicks

2002-08-13 Thread Dave at Sinewaves.net
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:23 PM To: 'Rasmus Lerdorf'; 'vic' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks I think I'm on the right track with: ?php // // CHANGE

RE: [PHP] count link clicks

2002-08-13 Thread vic
]] Sent: Tuesday, August 13, 2002 3:23 PM To: 'Rasmus Lerdorf'; 'vic' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks I think I'm on the right track with: ?php $i = $value++; // Show first link echo 'a href='.$PHP_SELF.'?add_form='.$value.' New paragraph

RE: [PHP] count link clicks

2002-08-13 Thread victor
: [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 12:23 PM To: 'Rasmus Lerdorf'; 'vic' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] count link clicks I think I'm on the right track

[PHP] download link

2002-06-11 Thread Kris Vose
are there any php functions that handle downloads? For Instance I want to create a link that contains a url string. In this string a variable is defined as a file. This file will be downloaded when the user clicks on the link. How do you handle this file in php? Is there a function that

Re: [PHP] download link

2002-06-11 Thread Adam Voigt
You mean like: ?php $file = whatever.exe; echo a href=\downloads/$file\Get This File/a; ? Which would make a download link for downloads/whatever.exe in HTML? Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-11 at 11:43, Kris Vose wrote: are there any php functions that handle downloads? For

[PHP] Help php MySql link

2002-05-03 Thread Rodrigo
Hi guys, what I need is how to make the link between the php and the Database. Is this the code for it? ro something like that? Help me guys... If you could tell me what each command line do I'd appreciate it, cause I got almost all from a friend, but is incomplete. The code follows

[PHP] Re: Help php MySql link

2002-05-03 Thread George Nicolae
___ PaginiWeb.com - Professional Web Design www.PaginiWeb.com Rodrigo [EMAIL PROTECTED] wrote in message 000401c1f2cf$28b83f00$d86bbbac@rodirgo">news:000401c1f2cf$28b83f00$d86bbbac@rodirgo... Hi guys, what I need is how to make the link between the php and the Database. Is this

RE: [PHP] Help php MySql link

2002-05-03 Thread John Holmes
$db = (localhost,databasename,databasepassword); maybe add in a MySQL_connect() somewhere in there??? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >