| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | 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 |
| |
| | #3 (permalink) |
| NamePros Member | 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) |
![]() | Hey nigel, Try this: PHP Code:
__________________ <?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?> |
| |
| | #6 (permalink) | |
| NPQ's PA, Slave, and On Call Coder Technical Services | Quote:
__________________ | |
| |
| | #7 (permalink) |
| NamePros Member | 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 |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |