Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [php]passaggio variabili da una pagina all altra
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
fulminato1
aLTeRaZioNeGuiTaRVoiCe

User info:
Registered: Oct 2003
Posts: 2809 (0.35 al dì)
Location: a casa.
Corso: comunicazio digital
Anno: secondo?
Time Online: 30 Days, 8:54:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[php]passaggio variabili da una pagina all altra

ho una pagina a.php la quale contiene una variabile $var e un link alla pagina b.php.

come faccio a passare la mia variabile $var alla pagina b.php?

mi spiego meglio...nella pagina b.php c è uno script che ha bisogno della variabile $var che ovviamente ha assunto un determinato valore in seguito all esecuzione della pagina a.php.

come posso fare?

__________________
www.alterazione.com www.andreaforzani.com
www.myspace.com/alterazione
www.myspace.com/festaincravilla

19-10-2005 12:47
Click Here to See the Profile for fulminato1 Click Here to See the Blog of fulminato1 Click here to Send fulminato1 a Private Message Visit fulminato1's homepage! Find more posts by fulminato1 Add fulminato1 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la passi con un post o con un get e la recuperi nell'altra pagina con $_POST['var'] (o con $_GET['var'])

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

19-10-2005 13:41
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Juventina
@Dublin

User info:
Registered: Dec 2001
Posts: 3334 (0.39 al dì)
Location: Trezzano s/N
Corso: specialistica informatica
Anno: 4 + 3 :/
Time Online: 44 Days, 15:17:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

le mandi via form con method post..
oppure le mandi in questo modo:
scrivi il link verso la pagina b.php in questo modo:
b.php?var=<?=$var;?>

;) bye

__________________
Don't be evil ;)

19-10-2005 20:52
Click Here to See the Profile for Juventina Click here to Send Juventina a Private Message Find more posts by Juventina Add Juventina to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
overflowonline
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 613 (0.08 al dì)
Location: Milano
Corso: Informatica
Anno: 3
Time Online: 3 Days, 13:03:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao per passare le variabili da una pagina all'altra devi abilitare un opzione nel php.ini non mi ricordo quale però... in questo modo se hai un pulsante di nome Submit la varibile che andrai ad acquisire si chiamerà $Submit e il suo valore sarà quello del tag value.. abbastanza semplice.. secondo me è la soluzione più eleganti..

23-10-2005 10:10
Click Here to See the Profile for overflowonline Click here to Send overflowonline a Private Message Find more posts by overflowonline Add overflowonline to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.54 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se ti riferisci a register_globals, oltre che inutile, espone anche a grossi rischi di sicurezza. Meglio lasciarla a off.

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

23-10-2005 19:07
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
drakend
.grande:maestro.

User info:
Registered: Oct 2002
Posts: 1857 (0.22 al dì)
Location:
Corso:
Anno:
Time Online: 11 Days, 16:15:18 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

E che ne dite di usare le variabili di sessione? Sono un'altro comodo modo secondo me...

23-10-2005 19:23
Click Here to See the Profile for drakend Click here to Send drakend a Private Message Find more posts by drakend Add drakend to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
overflowonline
.grande:maestro.

User info:
Registered: Mar 2003
Posts: 613 (0.08 al dì)
Location: Milano
Corso: Informatica
Anno: 3
Time Online: 3 Days, 13:03:23 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by DeepBlue
Se ti riferisci a register_globals, oltre che inutile, espone anche a grossi rischi di sicurezza. Meglio lasciarla a off.


MMh... hai ragione.. non mi ero mai posto il problema.. in merito segnalo questo link spiega bene il tutto:

http://www.allwebfree.it/articolo_p...ili_globali.php

ps:meglio andare a letto.. ciaoooo

25-10-2005 00:28
Click Here to See the Profile for overflowonline Click here to Send overflowonline a Private Message Find more posts by overflowonline Add overflowonline to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 18:26.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.172 seconds (77.69% PHP - 22.31% MySQL) con 22 query.