You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 63 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Form block coding [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Mercwar
Sergeant
Sergeant


Joined: Apr 14, 2003
Posts: 79


PostPosted: Tue Feb 27, 2007 8:30 am Reply with quoteBack to top

i have been trying to add this to a block, from allakhazam to use a search from outside their site to find stuff in their site etc, and well i dont know what i have done wrong, and have spent the last few hours trolling forums to find a solution can any one help me please?

Code:
<form action="http://wow.allakhazam.com/search.html" method="get">
<img src="http://wow.allakhazam.com/images/wowex.png" alt="Search Allakhazam's"
        style="width: 110px;height: 32px; vertical-align: middle;"/>
<input type="text" name="q" style="border: 1px solid black; width: 150px;"/>
<input type="submit" value="Search"/>
</form>


this is what i converted it to

Code:
<?php
if (eregi("block-allakhazam.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content .= "form action=\"http://wow.allakhazam.com/search.html\" method=\"get\">";
$content .= "input type=\"image\" src=\"http://wow.allakhazam.com/images/wowex.png\">";
$content .= "input type=\"text\" style=\"border\"1\" width=\"150px\">";
$content .= "input type=\"submit\" value=\"Search\">;
$content .= "/form>";
?>


i even added the "form"=>2 to the config.php, and that didn't work for me either, kinda lost now, not sure where i'm going wrong here
Find all posts by MercwarView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Tue Feb 27, 2007 7:26 pm Reply with quoteBack to top

Your code is missing the first < for each HTML tag

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Mercwar
Sergeant
Sergeant


Joined: Apr 14, 2003
Posts: 79


PostPosted: Mon Mar 05, 2007 5:33 am Reply with quoteBack to top

Code:
<?php

if (eregi("block-allakhazam.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

$content .= "<form action=\"http://wow.allakhazam.com/search.html\" method=\"get\">";
$content .= "<input type=\"image\" src=\"http://wow.allakhazam.com/images/wowex.png\">";
$content .= "<input type=\"text\" style=\"border\"1\" width=\"150px\">";
$content .= "<input type=\"submit\" value=\"Search\">;
$content .= "</form>";

?>


like that? also which tags in this code do i need to add more than form, because i tried this and it also did not work, it basically makes the main body of the page dissapear, along with the block
Find all posts by MercwarView user's profileSend private messageVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Mon Mar 05, 2007 1:03 pm Reply with quoteBack to top

You are missing a closing quote here
Quote:

$content .= "<input type=\"submit\" value=\"Search\">";

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.186 Seconds - 182 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::