Coding Help |
Coding Help |
Silent2052 |
May 19 2007, 02:21 PM
Post
#1
|
Group: Members Posts: 3 Joined: 19-May 07 Member No.: 2,861 |
ok guys I need help with this coding problem for a server connector ok?
heres what it's suppose to do, - Select a Server - The Select Option Value has the IP and when you click connect it's suppose to be Steam://connect/<?PHP $_GET['server_select']; ?> but instead it trys to conncet to your local IP instead hers a live demo: Http://www.Stealth-Image.com/ - Click on the EnterServer Button CODE // connect.php <head> <LINK href="style.css" rel="stylesheet" type="text/css"> <title>Stealth Image - Server Connect Panel</title> <form action="steam://connect/<?PHP $_GET['$id']; ?>" method="POST"> <body background="img/server-connect/header.jpg"> <div> <br> <br> <br></div> <div> <table style="border-collapse: collapse;" bordercolor="#000000" cellspacing="0" cellpadding="0" width="325" border="0"> <tbody> <tr> <td valign="top" width="100%"> <div> </div></td></tr> <tr> <td valign="top" width="100%"> <div> <img title="" alt="" src="img/server-connect/connect-info.jpg"></div></td></tr> <tr> <td valign="top" width="100%"> <div align="right"> </div></td></tr> <tr> <td valign="top" width="100%"> <div> <img title="" alt="" src="img/server-connect/selectserver.jpg"></div></td></tr> <tr> <td valign="top" width="100%"> <div> <select name="server_select"> <option selected="selected">Please select a server below</option> <option value="8.9.15.82:27015">Stealth Image - Chicago 24/7 Custom Map Server</option> </select> </div></td></tr></tbody></table></div> <br> <table style="border-collapse: collapse;" bordercolor="#000000" cellspacing="0" cellpadding="0" width="325" border="0"> <tbody> <tr> <td valign="top" width="100%"> <div> <input type="image" src="img/server-connect/button-connect.jpg" value=""> </div></td></tr></tbody></table> </body></form> </head> |
Silent2052 |
May 19 2007, 06:50 PM
Post
#2
|
Group: Members Posts: 3 Joined: 19-May 07 Member No.: 2,861 |
No one knows?
|
Brian Chandler |
May 21 2007, 12:05 PM
Post
#3
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
For a start you have a <form> that seems to start in the <head> and end outside the <body>. That's wrong.
And what is it supposed to do? <form action="steam://connect/<?PHP $_GET['$id']; ?>" method="POST"> What is the "steam" protocol? What is the value of the PHP variable $id, and how is it supposed to be set? I'm afraid this looks like confused jumble. Your link goes through some mysterious redirects, and I end up at the wikipedia entry for "HTTP". Hmm. Back to the drawing board... ? |
Silent2052 |
May 21 2007, 04:17 PM
Post
#4
|
Group: Members Posts: 3 Joined: 19-May 07 Member No.: 2,861 |
Well it works fine you need steam everything else loads but when you hit connect it doesnt work,
What I want is it to be like, <FORM ACTION="Steam://connect/<?PHP $_GET[' And I want it to get the id of the drop down option value. but it wont get it']; ?>"> And the select option looks like <SELECT NAME="server_select"> <OPTION id="?id=chicago01">Stealth Image - Chicago 24/7 Surf Server</OPTION> <OPTION id=?id=dcalifornia01">Stealth Image - California 24/7 De_Dust Server</OPTION> </SELECT> But it wont work please help... |
Christian J |
May 21 2007, 05:01 PM
Post
#5
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
In the code sample it seems you're trying to use the selected OPTION value in the same page's form ACTION, which doesn't work. Instead you might use something like
CODE <form action="Steam://connect/"> <select name="id"> <option value="chicago01">Stealth Image - Chicago 24/7 Surf Server</option> </select> which I think should resolve to Steam://connect/?id=chicago01 --not sure since I don't know what the steam protocol is. See also http://htmlhelp.com/faq/html/all.html#form-howto |
Peter1968 |
May 21 2007, 06:32 PM
Post
#6
|
Serious Coder Group: Members Posts: 448 Joined: 23-September 06 Member No.: 213 |
Steam is Valve's content delivery system - a much-maligned content delivery system at that, mind you.
http://support.steampowered.com/cgi-bin/st...nduser/home.php To the OP: you may get better support from the horse's mouth. |
Lo-Fi Version | Time is now: 27th April 2024 - 09:18 PM |