LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-18-2006, 07:08 PM   #1
blaze7
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
location.hrefs not being populated in IE url


I created a web app using PHP 5.0.4, MySQL 5.0.22, and Apache 1.3.3. In most cases, I use SESSION & POST vars, but in the case where the user selects a dynamic link, I use location.href and pass to the PHP processing page, the id's corresponding to which link the user selects. These dynamic id's show in the URL and I extract them in the PHP processing page using GET. This all works fine with no errors in my Windows env. But I am trying to put the source code on a Hosting company's site which is using a Linux Server, and none of the hrefs are being populated. I have tried modifying the php.ini file, but to no avail. The hosting company says I need to create my own php.ini file and place it in my root directory of the site. User Authentication using PHP & MySQL in the Linux env is working fine. It's just the hrefs that are not showing in the URL of the IE Browser. This happens in all cases where I am using hrefs. Following is: 1-PHP Code that contains the dynamic link that the user selects 2-JavaScript that defines the href 3-URL showing the href value in the IE browser in my Windows dev env(as a result of clicking on the link). Note that I return false from this function which causes the href in the calling statement not to be used, and the href defined in the JavaScript to be used 4-URL not showing the href value in the IE browser in the Linux env(as a result of clicking on the link) 5-php.ini file in the Linux env
1-PHP Code
echo "<font color='brown'><ul type='square'><li><b><font color='blue'>
<a name='".$current_service_request_id."' sr='".$num_rows_service_requests."' href='consulting_sr_form_edit.php' target='_top' onclick='return set_consulting_sr_session_vars(this)';><u>".$row['service_request_id']."</u></a>
</b><font color='brown'> - ".$row['service_request_status']." - ".$row['client_requisition_id']." - ".$row['job_title']." -&nbsp;

2-JavaScript
<script>
function set_consulting_sr_session_vars(current_link) {
var current_sr = current_link.name;
location.href="./consulting_sr_view.php?current_sr=" + current_sr;
return false;
}
</script>

3-URL showing the href value in the IE browser in the Windows env(as a result of clicking on the link)

http://localhost/pages4/consulting_s...?current_sr=47

4-URL not showing the href value in the IE browser in the Linux env
(as a result of clicking on the link)

5-php.ini file in the Linux env[PHP]
Note: I cannot post this because it causes the number of characters to exceed the limit allowed in the thread.
 
Old 08-18-2006, 07:10 PM   #2
blaze7
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
4-URL not showing the href value in the IE browser in the Linux env
(as a result of clicking on the link)
http://<ip_address>/~qatestne/pages4/consulting_sr_form_edit.php
 
  


Reply

Tags
javascript, phpini


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
udev: /dev/ directory over-populated - why? Yalla-One Slackware 3 08-13-2006 02:47 PM
redhat-config-users is not populated viswanaath Linux - Newbie 1 11-11-2005 03:05 PM
ERROR The requested URL could not be retrieved While trying to retrieve the URL: /re Niceman2005 Linux - General 1 06-29-2005 10:51 AM
Script or Simple App to Create HTML Table Populated With Images infidel Linux - Software 14 06-07-2005 02:08 AM
(alt+f) + enter url default location ergo_sum Linux - Newbie 2 09-18-2003 02:07 PM


All times are GMT -5. The time now is 01:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration