search code adjust

Started on the old forum in July 2010 · view the original in the archive · old links redirect here

4 replies · 378 views · started 16 years ago · 1 min read

2 participants
pretend Developer · 107 posts #1

hi there i am needing to insert action=main on above code, the above code is a code which gives the url of searching mp3

echo "<form method='get' action=''> <input type='text' name='search' value=''><input type='submit' value='Search'></form>";

so i tried inserting

echo "<form method='get' action=''> <input type='text' name='action=main&search' value=''><input type='submit' value='Search'></form>";

but it gives some thing called

index.php?action%3main%23search

can any one help me with this just needing the = and & to be correct!

Nice Effects

subzero Super moderator Fellow · 3,954 posts #2
<input type ="hidden" name="action" value="main"/> <input type ="hidden" name="search" value=""/>

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

pretend Developer · 107 posts #3

this is how the result comes in url tab for the above code

echo "<form method='get' action=''> <input type='text' name='action=main&search' value=''><input type='submit' value='Search'></form>"; 

index.php?search=akon

i want it to make it as

index.php?action=main&search=akon

so i tried inserting your code subzero it gives me parse error

Nice Effects

subzero Super moderator Fellow · 3,954 posts #4
<input type ='hidden' name='action' value='main'/>
<input type ='hidden' name='search' value=''/>

You have ' Not " sorry lol

But if you wish to search is best to use " then '

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

pretend Developer · 107 posts #5

man i am still twisted you posted the same code again and saying me "not" sorry lol? i cant understand

echo "<form method='get' action=''> <input type='action' name='search' value=''><input type='submit' value='Search'></form>";

i am needing to make the url to appear after searching akon as above it only shows be as below Mp3 Searching i want it to be like this index.php?action=main&search=akon

Nice Effects

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close