Jump to content

Macsure

New Members
  • Posts

    6
  • Joined

  • Last visited

Macsure's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hmm ok I thought I had. I will try again. Re : working with the code above. Once u fill the form out and hits submit. I don't receive an email. It takes you a designated page that I chose just for testing. So that part works. However I don't receive the email that comes from the comment form. Hopefully this fill in the gaps to make it easier for someone to help me
  2. Is this Too hard to fix? Have I posted in the section. Please someone I am desperate of help
  3. Hi All, I am using a html5/css3 responsive web template. I am up to the comments form part. I have tried a few things to get it wokring but I have failed, Hoping some who is a lot smarter then I can help me out. <form action="/gdform.php" method="post"> <div class="row half"> <div class="6u"> <input name="name" placeholder="Name" type="text" class="text" /> </div> <div class="6u"> <input name="email" placeholder="Email" type="text" class="text" /> </div> </div> <div class="row half"> <div class="12u"> <textarea name="message" placeholder="Message"></textarea> </div> </div> <div class="row half"> <div class="12u"> <a href="" class="button button-icon icon icon-envelope">Send Message</a> </div> </div> </form> that is the html side and I am using a gdform. which looks like this <?php $request_method = $_SERVER["REQUEST_METHOD"]; if($request_method == "GET"){ $query_vars = $_GET; } elseif ($request_method == "POST"){ $query_vars = $_POST; } reset($query_vars); $t = date("U"); $file = $_SERVER['DOCUMENT_ROOT'] . "/../data/gdform_" . $t; $fp = fopen($file,"w"); while (list ($key, $val) = each ($query_vars)) { fputs($fp,"<GDFORM_VARIABLE NAME=$key START>\n"); fputs($fp,"$val\n"); fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n"); if ($key == "redirect") { $landing_page = $val;} } fclose($fp); if ($landing_page != ""){ header("Location: http://".$_SERVER["HTTP_HOST"]."/$landing_page"); } else { header("Location: http://".$_SERVER["HTTP_HOST"]."/"); } ?> My understand is if I have done it correctly. I should receive a email at GD web hosting email which I have set up.
  4. Wow, quick response Thankyou so much Ch0cu3r, Looking at at the code now, yr explanation, I kinds fella bit foolish Once thanks
  5. I am learnng code and script too, Very new infact. I bring data off a game server, which is .xml, and I mangered to write a script to make it work get get the result I wanted (see below) I basically have 5 x rows and 2 Columns. as you can see. <!DOCTYPE html> <html> <head> <script type="text/JavaScript"> function timedRefresh(timeoutPeriod) { setTimeout("location.reload(true);",timeoutPeriod); } </script> </head> <body onload="JavaScript:timedRefresh(60000);"> <style type='text/css'> #table1 { border:0; color:000000; height:400px; overflow:auto; } td{ padding-left:20px; padding-right:20px; } #div1 { width:400px; background-color:#ffffff; } </style> <?php echo '<div id=div1>'; $xml1=simplexml_load_file("http://vsk5-public34:Ysotg7TwfF@scripts.ac32.virtualskipper.com/getPlayersOnline.php"); $totalplayers=$xml1->nbplayers; echo '<table id=table1 bgcolor=#ffffff>'; $xml=simplexml_load_file("http://vsk5-public34:Ysotg7TwfF@scripts.ac32.virtualskipper.com/getServersOnline.php"); echo '<tr><td cellpaddding=40px>Vsk5online Servers</td><td>'. $xml->nbservers. '</td></tr>'; echo '<tr><td cellpaddding=40px>Players Online </td><td>'.$totalplayers . '</td></tr>'; echo '<tr><td colspan=2>___________________________________________________</td></tr>'; foreach($xml as $server) { if ($server->login!='') { echo '<tr><td width=150px>host :</td><td>' .$server->login. '</td></tr>'; echo '<tr><td width=150px>server :</td><td>' .$server->servername. '</td></tr>'; echo '<tr><td width=150px>current players :</td><td>' .$server->playercount. '</td></tr>'; echo '<tr><td width=150px>maximum players :</td><td>' .$server->maxplayercount. '</td></tr>'; echo '<tr><td width=150px>boat class :</td><td>' .$server->currentvehiclename. '</td></tr>'; echo '<tr><td colspan=2>___________________________________________________</td></tr>'; } } echo '</table>'; echo '</div>'; ?> </body> </html> But now I am trying to 5 columns Is there any chance of you helping me out. If so then I can post my code etc, Thanks in advance Macsure
  6. Hi quick old car, I am in the same class as M dexter, I am learnng code and script too, Very new infact. I bring data off a game server, which is .xml, and I mangered to write a script to make it work get get the result I wanted , well Kinda I basically have 5 x rows and 2 Columns. But now I and trying to 5 columns Is there any chance of you helping me out. If so then I can post my code etc, Thanks in advance Macsure
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.