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.

SEO Tycoon


You are currently viewing our SEO Tycoon as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Using $_POST with Search Engines
Old 12-28-2007, 06:33 AM Using $_POST with Search Engines
Super Talker

Posts: 116
Name: Paul
Location: South Africa
Trades: 0
I have a site that is fully designed with PHP and HTML, I have a sitemap with links to all the pages that I want crawled, the homepage gets crawled fine and so does the sitemap page itself, but it will not follow the links on the sitemap page, I have coded the links like this

Code:
<form action="/higuide_advertisments.php"
method="post"
name="advsitemap<?php echo $row_rsAdvertisers['CustID'] . $row_rsAdvertisers['loc']; ?>" target="_blank" id="advsitemap<?php echo $row_rsAdvertisers['CustID'] . $row_rsAdvertisers['loc']; ?>">
<a href="#" onclick="document.advsitemap<?php echo $row_rsAdvertisers['CustID'] . $row_rsAdvertisers['loc']; ?>.submit();"><?php echo $row_rsAdvertisers['CompanyName']; ?></a>
<input name="hgCustID" type="hidden" id="hgCustID<?php echo $row_rsAdvertisers['CustID'] . $row_rsAdvertisers['loc']; ?>" value="<?php echo $row_rsAdvertisers['CustID']; ?>" />
<input name="hgalnk" type="hidden" id="hgalnk<?php echo $row_rsAdvertisers['CustID'] . $row_rsAdvertisers['loc']; ?>" value="zero" />
<input name="hgloc" type="hidden" id="hgloc<?php echo $row_rsAdvertisers['CustID'] . $row_rsAdvertisers['loc']; ?>" value="<?php echo $row_rsAdvertisers['loc']; ?>" />
</form>
It uses javascript to execute a form with 3 hidden fields that hold the various $_POST variables that the results page needs, I know that this seems mad however when the site was first designed it used $_GET and that just took the apache server down every 10 queries or so, and although I tried many things to fix that none of them were successful, so I resorted to $_POST.

Please can somebody help me figure this out, I really do not know what else to try at this point.
scorpioserve is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-28-2007, 08:09 AM Re: Using $_POST with Search Engines
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
It uses javascript to execute a form with 3 hidden fields that hold the various $_POST variables that the results page needs,
Not a chance of search engines seeing that page.

1/ SE bots are NOT javascript enabled.

2/ SE bots do NOT submit forms.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-28-2007, 02:14 PM Re: Using $_POST with Search Engines
Super Talker

Posts: 116
Name: Paul
Location: South Africa
Trades: 0
So can you give me any workaround for this problem, can search engines only see ugly url's that $_GET uses, or do I have to use $_GET and learn how to use mod rewrite in conjunction, I do not care if my url’s are 20 miles long as such and the data is not really a security concern or sensitive as such however $_GET just seems to hang my server, I do not know why, I have tried on windows 2003 with apache php and sql all taken from the precompiled binaries and on windows 2008 server, then I tried both again in later versions and then I tried it with a xampp installation and all of them are doing the same thing, the only way I have found to stop it, is by using $_POST and the only way I can get the variables accross without having a proper form per link is to hide them within this odd javascript. Please see if there is a way to try fix this problem.
scorpioserve is offline
Reply With Quote
View Public Profile
 
Old 12-28-2007, 04:55 PM Re: Using $_POST with Search Engines
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Get and POST request have only 1 difference:
Get request pass the variables and values in the request, when Post have those infos in the body of the request.

I don't see how this could be the problem overloading your web server.
I'd say that the problem was elsewhere, and it solved itself at the same time you made this modification, or you have something else in the code that works on the get request and interfere with your requests.

Back on your subject, there is no way to have the SE crawls your pages if they are reachable with onclick and forms. Point.
You need to create links in the form
HTML Code:
<a href="myPage.php">my page</a>
if you want them to bee seen.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 01-01-2008, 03:02 AM Re: Using $_POST with Search Engines
Ultra Talker

Posts: 310
Trades: 0
You can use mod_rewrite to rewrite all your ugly GET links.
dman_2007 is offline
Reply With Quote
View Public Profile
 
Old 01-02-2008, 10:46 AM Re: Using $_POST with Search Engines
~DaRk-EyE~'s Avatar
Average Talker

Posts: 16
Trades: 0
I suggest that you better use pure html for your sitemap, much easier to crawl and more SE friendly...
~DaRk-EyE~ is offline
Reply With Quote
View Public Profile
 
Old 01-05-2008, 03:12 PM Re: Using $_POST with Search Engines
Junior Talker

Posts: 2
Name: Steve
Trades: 0
I would use mod-rewrite on the $_GET variables and for everything else, I'd use an xml sitemap. If go to www.google.com/webmasters/tools -- you can upload your xml sitemap directly to google and they start crawling everything within 30 min. or so.
__________________

Please login or register to view this content. Registration is FREE
banjosteve is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Using $_POST with Search Engines
 

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.40703 seconds with 12 queries