I was wondering if there was a way of passing a PHP variable from a HTML form such as $FirstName to populate another form on an ASP page?
Thanks
Passing a PHP variable to ASP form
Moderator: General Moderators
Firts thought; $_GET, sending the variables in the URI.
As in http://www.example.com/folder/index.php ... uppet=gngh would equal $_GET['foo'] = 'bar' & $_GET['muppet'] = 'gngh' in PHP.
Achieved by using <form method="get"> as opposed to method="post"
As in http://www.example.com/folder/index.php ... uppet=gngh would equal $_GET['foo'] = 'bar' & $_GET['muppet'] = 'gngh' in PHP.
Achieved by using <form method="get"> as opposed to method="post"
- pelegk2
- Forum Regular
- Posts: 633
- Joined: Thu Nov 27, 2003 5:02 am
- Location: Israel - the best place to live in after heaven
- Contact:
sure start with get
beacuse it bilds the url+variavles execlly like in asp
(i know i working with asp for 2 years)
about post check it out
after u post to an asp page
u have there request.servervariables("**")...(***something dont remember at the moment check the and u find there the full query string that was sent using post) and u will see if there is no problem and diffrence (i belive not beacuse it build the string the same u just dont see the variables in the adress bar
good luck
and come visit the holy land = ISRAEL
(i know i working with asp for 2 years)
about post check it out
after u post to an asp page
u have there request.servervariables("**")...(***something dont remember at the moment check the and u find there the full query string that was sent using post) and u will see if there is no problem and diffrence (i belive not beacuse it build the string the same u just dont see the variables in the adress bar
good luck
and come visit the holy land = ISRAEL