[PHP] Question about the date

2004-11-03 Thread Henri Marc
Hello, I have a question about the date. I have a script that compose an e-mail and send it. No problem until now, but I also need that the script can write the date of the next week. Let say we are Wednesday. The script must write the date of Wednesday 3rd in the e-mail. But from 5pm today, it ne

Re: [PHP] How does work shorten url services?

2004-09-18 Thread Henri Marc
Hello, > Those sites (because there are more) just put the > urls in a database, and > assign an ID to each one. > > Then, a program (that can be made in any language) > queries the database for > the given ID, and get the long URL. Then it > redirects to that URL and that's > all. Ok, it is like

[PHP] How does work shorten url services?

2004-09-18 Thread Henri Marc
Hello, I know that some web sites offer a service to shorten long url. It is very useful when your site is hosted by your Internet provider for example, and that you have a long url. Or when you want to send it in an e-mail. tinyurl.com does that for example. The principle is that you enter your l

RE: [PHP] How to get a unique series of numbers?

2004-08-23 Thread Henri Marc
Hello, > I would take each number and place it in an array. > Then for each Thank you very much. It has been really very helpful for me. Vous manquez d’espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Créez votre Yahoo! Mail sur ht

[PHP] How to get a unique series of numbers?

2004-08-20 Thread Henri Marc
Hello, I want to generate a few numbers and those numbers must not be generated two times. For example the user chooses to have two series of 5 numbers. then I have to generate (with MT_RAND) two series of 5 numbers. No problem for the first, then the second must be different from the first. I hav

Re: [PHP] Re: Image and variable

2004-08-10 Thread Henri Marc
Hello, > Variables in single-quoted strings are not > evaluated. Either user double > quotes or concatination: Thank you very much all for your help, specially Kevin Waterson for his complete program. It was simple, I always make some mistakes with those quotes :-( Another problem still related t

[PHP] Image and variable

2004-08-10 Thread Henri Marc
Hello, I would like to use a variable instead of an image file name in a html page with this instruction: '; ?> I tried but the image doesn't show up. Is it impossible or do I do something wrong? My goal is to have a random image print in the page, that's why I want to use a variable. Thank you

Re: [PHP] Another problem with grids and checkboxes

2004-08-03 Thread Henri Marc
Hello, > > 1 > name="grid[1][1]" value="1" type="checkbox"> > > > [snip] > > 1 > name="grid[2][1]" value="1" type="checkbox"> > > > > Is there a reason you're sending a 1, 2 or 3 value > with the checkboxes? Well, I thought it was the good way to do. It helps me to

[PHP] Another problem with grids and checkboxes

2004-07-31 Thread Henri Marc
Hello, I have another problem with my program. Again! Here it is: I have some grids. To make it simple, let's say I have two grids like this: 1 2 3 1 2 3 Each grid has 3 numbers, 1, 2 and 3. There is grid[1][

[PHP] Replace a button by an image

2004-07-30 Thread Henri Marc
Hello, Is it possible to replace a button by an image with PHP? Thanks! Dave Vous manquez d’espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger e

[PHP] Question about for

2004-07-25 Thread Henri Marc
Hello, I woudlike to use a loop: for ($i=1;$i<11;$i++) But instead of incrementing with 1, I would like to increment by 2. So $i would be 1,3,5,7,9. I tried to find the answer may be with "step" but couldn't find anything. Thank you for your help. Dave Vou

Re: [PHP] Problem of a beginner with Array

2004-07-21 Thread Henri Marc
Hello Torsten, > try this: > > input name="Grid1[1]" type"checkbox" file://1st > grid, 1st checkbox > input name="Grid1[2]" type"checkbox" file://1st > grid, 2nd checkbox... Seems I can't do another way than this. Not possible to do just Grid1[]. > After submit you will receive $_POST['Grid1'] a

Re: [PHP] Problem of a beginner with Array

2004-07-21 Thread Henri Marc
Hello, Thank you very much for all the people who replied me so fast. Unfortunately I still have a problem with that part. "Matt M." <[EMAIL PROTECTED]> wrote: > Now, I want to know which numbers have been checked by the player. > I have a : > "input name="Grid1" type="checkbox" > for the first

[PHP] Problem of a beginner with Array

2004-07-20 Thread Henri Marc
Hello, I'm just starting with PHP and I have a problem. This is certainly very easy for you but for me, it's tough. I want to make a lottery site (just as an exercise), so I made a page with 6 grids of 50 numbers each (check boxes). Now, I want to know which numbers have been checked by the