Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Closed Thread
Transferring data through js....need help.
Old 03-02-2010, 06:58 AM Transferring data through js....need help.
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Hi,

I am transferring data through Javascript, its showing it into the url but at not in $_get[].

This is how I am calling it......


HTML Code:
var b=document.getElementById('get_searchword').value;
            document.getElementsByTagName('form')[0].action="srch/searchkey.php?id=city&title="+b+"";
I can see the keyword in URL BAR...but its not getting any value in get...

this is how I am using get....

PHP Code:
$mainkey mysql_real_escape_string($_GET['get_searchword']); 
The problem is there is no error msg..........and its showing no results.....

Any help would be highly appreciated.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes

Last edited by Isabella_Smith; 03-02-2010 at 07:00 AM..
Isabella_Smith is offline
View Public Profile
 
 
Register now for full access!
Old 03-02-2010, 07:03 AM Re: Transferring data through js....need help.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Probably because the URI does not contain a key of "get_searchword"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 03-02-2010, 07:20 AM Re: Transferring data through js....need help.
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Probably because the URI does not contain a key of "get_searchword"

Sorry.......my mistake.........its something like this...

$mainkey = mysql_real_escape_string($_GET['title']);
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
View Public Profile
 
Old 03-02-2010, 07:39 AM Re: Transferring data through js....need help.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
you need to put BOTH of your related threads together.


http://www.webmaster-talk.com/php-fo...h-keyword.html
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 03-02-2010, 07:42 AM Re: Transferring data through js....need help.
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
But both of things are different....here I want to learn how to use JS in this situation....I hope there is no problem with this....
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
View Public Profile
 
Old 03-02-2010, 07:51 AM Re: Transferring data through js....need help.
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It's the SAME "problem" in both "questions"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
View Public Profile Visit chrishirst's homepage!
 
Old 03-02-2010, 08:39 AM Re: Transferring data through js....need help.
Isabella_Smith's Avatar
Ultra Talker

Posts: 285
Trades: 0
ok,ok, please don't panic.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE



Please login or register to view this content. Registration is FREE
buy all indian salwar Kameez, Sarees and clothes
Isabella_Smith is offline
View Public Profile
 
Closed Thread     « Reply to Transferring data through js....need help.
 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25169 seconds with 12 queries