11
Nootje
Re: Direct link to search query - xoopsmembers
  • 2004/3/18 15:37

  • Nootje

  • Just popping in

  • Posts: 15

  • Since: 2004/3/16


O man, that didn't seem to do it either. I uploaded my index.php to my friends site so u can see the whole thing.
U can find it at http://home.quicknet.nl/qn/prive/t.a.guijt/downloads/index.php

I'm at ur mercy Mithrandir...
No wonder you got such a high post count with stupid people like me around

12
Mithrandir
Re: Direct link to search query - xoopsmembers

can you elaborate on why it doesn't work? I mean - does it still just give the form no matter what?

13
Nootje
Re: Direct link to search query - xoopsmembers
  • 2004/3/18 16:12

  • Nootje

  • Just popping in

  • Posts: 15

  • Since: 2004/3/16


Yeah it does the same thing no matter if i do

$_GET['op']

or

$_GET

Keeps showing me the form, no matter if i type something in the form or if i won't type anthing in the form. Keeps showing me the blank form again after pressing the submit button.

14
Mithrandir
Re: Direct link to search query - xoopsmembers

Think, I've got it:
$submit_button = new XoopsFormButton("""user_submit"_SUBMIT"submit");

$form = new XoopsThemeForm("""searchform""index.php");
$form->addElement($name_tray);

should be
$submit_button = new XoopsFormButton("""user_submit"_SUBMIT"submit");

$form = new XoopsThemeForm("""searchform""index.php""GET"); // GET method
$form->addElement($name_tray);

15
Nootje
Re: Direct link to search query - xoopsmembers
  • 2004/3/18 16:59

  • Nootje

  • Just popping in

  • Posts: 15

  • Since: 2004/3/16


There's progress, when i type in nothing in the fields its showing this

index.php?user_name_match=0&user_name=
&user_name_match=0&user_name=&user_email_match=
0&user_email=&user_icq_match=0&user_icq=
&user_aim_match=0&user_aim=&user_yim_match=
0&user_yim=&user_msnm_match=0&user_msnm=
&user_url=&user_from=&user_occ=&user_intrest=
&user_lastlog_more=&user_lastlog_less=
&user_reg_more=&user_reg_less=&user_posts_more=
&user_posts_less=&user_sort=name&user_order=
ASC&limit=&op=submit&user_submit=submit

(put some breaks in it, page was going funky)

in my addressbar, but it still not going to the page to show the results o_0

It goes back to the form again!

I updated the index.php on the site so u can see again what it looks like atm.

16
Mithrandir
Re: Direct link to search query - xoopsmembers

I just spotted this in your posted index.php:
if ( isset($_GET) && $_GET == "submit" ) {
    
$op "submit";
}


it should be $_GET['op'] not just $_GET - $_GET is an array and will not have a value "submit" and hence the $op variable will always be assigned the value "form"

17
Nootje
Re: Direct link to search query - xoopsmembers
  • 2004/3/18 17:50

  • Nootje

  • Just popping in

  • Posts: 15

  • Since: 2004/3/16


Whoohoo it works now

Thank you, thank you, thank you Mithrandir

18
simonvl
Re: Direct link to search query - xoopsmembers
  • 2004/4/4 10:54

  • simonvl

  • Just popping in

  • Posts: 44

  • Since: 2004/1/28


Sounds great but left me a bit confused...

Could you list the hacks required?

Do you have to edit these variables multiple times within the document? Think this would be very useful.
Cheers
Simon

19
Mithrandir
Re: Direct link to search query - xoopsmembers

1) Change $HTTP_POST_VARS in the "submit" switch to $_GET
2) Change the submit-button to take an extra parameter: "GET"
3) Change the clause which sets $op = "submit" to take the GET parameter
4) Post here, if I have forgotten anything

20
simonvl
PHP function for posting data
  • 2004/4/6 16:40

  • simonvl

  • Just popping in

  • Posts: 44

  • Since: 2004/1/28


Another possible way could (theoretically) be to post the data to a php page, with then extracted $HTTP_POST_VARS and posted this into a form with the method $GET to the target page. I don't know if there is a way of getting php to do this? Would be very easy if there was.
Simon

Login

Who's Online

190 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 190


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits