vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Hidden submital to mutliple scripts? (https://vborg.vbsupport.ru/showthread.php?t=7233)

01-25-2001 09:25 PM

I need code that will take an entry into a formbox, send a copy of that entry to one site using one name for the box, send it to another site using another name for the box, etc...

In other words, I'm trying to create one single registration page that will transparently register the user with liveuniverse.com, and Vbulletin at the same time, without renaming all the login fields on member.php.

For example the field for the username on Liveuniverse.com is named "dig.new.handle" while the field for the username on Vb is named "username".

If someone could help me with this it would be greatly appreciated. A friend suggested hidden frames, but I didn't understand his explanation.

Thanks!

-Eugene

Pertinent info:
My forum
http://techhappy.com/forums/member.p...ster&who=adult

Liveuniverse:
http://www.liveuniverse.com

01-26-2001 09:26 AM

i started a post about just the same type of thing yesterday:

http://vbulletin.com/forum/showthread.php?threadid=7216

01-26-2001 02:23 PM

i dont understand what your trying to do on your site. If they sign up it puts them in the database. I want to have a form that signs them up to multiple sites, and i dont have explicit access to the database.

01-26-2001 02:25 PM

Also, I dont want to have multiple sign ups to Vb.

I want it to sign up to Vb, a chat service, and everyone.net, all from one page.

The problem is, each of those services name the fields differently, one calls the username "username", another calls it "Dig.user", etc..

01-26-2001 02:52 PM

same here....

basically i want this for two things. 1 is exactly what you want, so that they sign up for say vbulletin and their email also goes to a mailing list script as well.

Secondly, i want to be able to put some code into someone's elses of server script (that does NOT do mysql itself with username and password) that sends some info to say register2.php (to be made) on my server that adds the info to my database?

ie.

1. user goes to http://www.friendsdomain.com
2. user fills in form to sign up for friendsdomain.com
3. form contains username and email etc.
4. presses submit
5. goes to http://www.friendsdomain.com/processform.php
----
6. Now i want that info to also be sent to http://www.mydomain.com/register.php so it can deal with it.
----
7. user sent to http://www.friendsdomain.com/thankyou.php

01-26-2001 03:00 PM

Everything you want done can be done, I just don't know the way to code it.

It will fire off a Lynx browser on your system, that updates each of those other sites

Like
http://www.blah.com/register.cgi?use...&password=blah etc

The sistes would have to all a post from outside their server on the script for it to work.

01-26-2001 04:23 PM

cool... i suppose the hidden frame thing could work like that as well creating a frame with url

http://www.domain.com/register.php?u...assword=blah.. i may see if i can do that although doing it the way you suggest would be a lot better, i will search around and see if i can find anything.

01-26-2001 04:51 PM

What I've done is simple, probably not incredibly efficient, but it works. :)

$blah = file("http://www.domain.com/script.php?arg=".urlencode($val)."&arg2=1");

Of course, this might not work if the program being used ignores variables sent through GET. :) You could do a more complex way and just emulate POST, but I'm not going to go into that.

01-26-2001 06:07 PM

Quote:

Originally posted by Ed Sullivan

$blah = file("http://www.domain.com/script.php?arg=".urlencode($val)."&arg2=1");

Uh huh, what does each part of this statement do?

01-26-2001 07:32 PM

cool ed, simplicity is best - clever

thanks

eugenie

$blah = file("http://www.domain.com/index.html")

just tells the script to download the file (in the process of course it sends the data to that server.. about to come to that).

the

?arg=blah

arg is like username=
and blah would be the actual username

now the .urelencode($val) is just to turn $val (which may be say two words into url transmittalbe information).

Make sense.

ED:

How would you do this in perl?


All times are GMT. The time now is 10:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01156 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete