printf("\n Enter your username: ");
		gets(username);
	printf("\n Enter your password: ");
		gets(password);

	sprintf(buffer,"http://site.com/blah.php?Username=%s&Password=%s",username,password);
	
	ShellExecute(NULL, "open", buffer, NULL, NULL, SW_HIDE);

why does it open that url in a browser? i need it to be hidden
Is there a better replacement for ShellExecute

yeh there's a better way.

it's called "winsock"

learn it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.