| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Nov 2005
Posts: 66
![]() | Register Globals Hi, I have register globals turned on, but i have a script that when a form is posted, the variables are not passed on. In the script at the top if i just go echo $dbhost; it works. However, if i have something like if (!isset($var1)) { $dblink=@mysql_connect($dbhost, $dbuser, $dbpass); } The variables are not passed on. Any ideas?
__________________ Free AJAX Proxy: http://www.ctrlaltproxy.com Useful DHTML/AJAX tutorials: http://www.dhtmlsite.com |
| |
| | THREAD STARTER #3 (permalink) |
| NamePros Member Join Date: Nov 2005
Posts: 66
![]() | The mysql function works, but it executes it has having no values in it. so it has an error like cannot connect with nobody@localhost (USINGPASSWORD: NO) etc.
__________________ Free AJAX Proxy: http://www.ctrlaltproxy.com Useful DHTML/AJAX tutorials: http://www.dhtmlsite.com |
| |
| | #4 (permalink) |
![]() Join Date: Jul 2005 Location: Coffs H, Australia
Posts: 3,456
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Hey nigel, Try this: PHP Code:
__________________ Free Forums / GoDaddy Coupon Codes (NEW DOMAIN!) / Free Arcade Script / <?='Your computer is '.(1?fine:broken).'.'?> |
| |
| | #6 (permalink) | ||||
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| ||||
| |
| | THREAD STARTER #7 (permalink) |
| NamePros Member Join Date: Nov 2005
Posts: 66
![]() | I've tried substituting them with the $_POST things too, but they didn't work either =/ it's really weird. Heres the code: PHP Code:
__________________ Free AJAX Proxy: http://www.ctrlaltproxy.com Useful DHTML/AJAX tutorials: http://www.dhtmlsite.com |
| |