Re: [PHP] find a word in a string

2008-11-06 Thread Amisha_Sharma

Hi 

Strstr fuction of PHP is used to find a string in another string
http://www.senpai-it.com/dedicated_servers.php 
Senpai IT Solutions  Dedicated Server at low cost 



Richard Kurth-2 wrote:
 
 is the a php function to find a word in a string and report back that it 
 was found
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 

-- 
View this message in context: 
http://www.nabble.com/find-a-word-in-a-string-tp20353971p20357047.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] basic php question...

2008-11-06 Thread Amisha_Sharma

Hi  
What do you want to do on the another page?
you can also place a back link on that page to go back to previous page

http://www.senpai-it.com/dedicated_servers.php Senpai IT Solutions 
Dedicated Server at low cost 

bruce-60 wrote:
 
 hi guys...
 
 i've got a button that i want to select, and i want the app to process
 some
 logic, and then return the user to the page. my question is how??
 
 something like
 
 base page:
 
  foo.php button link 
 
 foo.php
  -process logic
  -return the user to the base page, with the same querystring that 
   was initially used to generate the initial base page
 
 
 foo.php doesn't have any display function, just the logic 
 
 thoughts/sample php pages/psuedo code chunks...
 
 thanks
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
View this message in context: 
http://www.nabble.com/basic-php-question...-tp20329309p20357151.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Random number generator

2008-11-06 Thread Amisha_Sharma

Hi

you can use PHP rand() function for selecting a random number between 1 to
100.

http://www.senpai-it.com/dedicated_servers.php Senpai IT Solutions 
Dedicated Server at low cost  

WEISD wrote:
 
 
 On a php web page I want to generate a random number  between say 1 and 10 
 and then use that number to reference a particular file in an include tag.
 
 ?php include('GeneratedNumber.html'); ?
 
 Is there an easy way to do this?
 
 Thanks 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Random-number-generator-tp20347780p20357212.html
Sent from the PHP - General mailing list archive at Nabble.com.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php