This is a discussion on "[SOLVED] Radio Button Response! :(" within the PHP Forum section. This forum, and the thread "[SOLVED] Radio Button Response! :( are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Radio Button Response! :(
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hey hey.
I dont know whether this should go in html/php so i posted in both (sorry admins :'( ) Riiiiiggghhtt I was sppooshing around on the net when i found an awsome website with an awsome feature which i want =D The origonal website is
Right, so I got me the source and edited a bit to suit me (still editing). However i need help recreating a file which i cant get the source of
X is what has been entered in the index page, F the google search command which would vary for each radio box selected. I have tried endles times recreating it myself, but i can only get it t work when theres only 1 radop button to 1 text and submit button. Here the source
---------- I need help writting the the .php file where the radio and textbox info is submitted to. I think the project.txt form needs wriritting though for it to work? Maybe if someone could do that, and write out an example of the response.php? enough so i can cut n past to all of them. I know it sounds alot, id be SOOO thankfull if someone could do this, i dont know if its against the rules but i would be willing to donate the person or this website. I have had lllooooonnngg hours reading ebooks trying to write this stupid php file with my nooby experience =[ Thank you in advanced!!!! |
|
|
|
#2
|
|||
|
|||
|
Re: Radio Button Response! :(
I think you need to use the GET method instead of POST becuase you are sending variables to the browser
|
|
#3
|
|||
|
|||
|
Re: Radio Button Response! :(
Thanks for reply.
As i said i have no idea =D I know this might be big project thats why i offer donation ONLY IF its not against the rules, which i dont know. |
|
#4
|
|||
|
|||
|
Re: Radio Button Response! :(
still needing help on this..
thanks. |
|
#5
|
|||
|
|||
|
Re: Radio Button Response! :(
|
|
#6
|
||||
|
||||
|
Re: Radio Button Response! :(
Okay, this should pretty much emulate what that site is doing... It just save the PHP in a file on your server and then point your form at it and boom! Done.
Cheers,
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#7
|
|||
|
|||
|
Re: Radio Button Response! :(
Omg, you do not know how thankfull i am!!! THANKYOOH!!! =D
here's your work:
|
|
#8
|
||||
|
||||
|
Re: Radio Button Response! :(
Change this line
if (isset($_POST['searchType']) && isset($headerSettings[$_POST['searchType'])) to if (isset($_POST['searchType']) && isset($headerSettings[$_POST['searchType']]))
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#9
|
|||
|
|||
|
Re: Radio Button Response! :(
Ok updated =D
Hmm seems to work but not the commands :'( |
|
#10
|
||||
|
||||
|
Re: Radio Button Response! :(
Sorry buddy, must be a bit tired.
replace
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Last edited by Rakuli; Oct 17th, 2007 at 17:44. |
|
#11
|
|||
|
|||
|
Re: Radio Button Response! :(
Thanks very much, it works now, i updated the link.
THanks soooo much!! =D 1 final question, i would be able to use this on
|
|
#12
|
||||
|
||||
|
Re: Radio Button Response! :(
My code's not common sense? LOL,
Yeah, use it wherever you want change it around if you want Have fun with it..
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#13
|
|||
|
|||
|
Re: Radio Button Response! :(
Hey again =D
1 question =D You know how you did the youtube one, how can I make a few more search on other sites? i kept trying keeps coming with error... Here is what i have done as an example (which is wrong)
|
|
#14
|
||||
|
||||
|
Re: Radio Button Response! :(
I can't see anythin wrong with that
you could cut the line back to just header ('Location: http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search=' . rawurlencode($headerSettings$_POST['seachTerm']));
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
|
#15
|
|||
|
|||
|
Re: Radio Button Response! :(
hey hey,
nope doesnt work. line 33 is that lin you pasted up there. Parse error: syntax error, unexpected T_VARIABLE in ......................... test.php on line 33 |
|
#16
|
||
|
|