Log in

View Full Version : Help



-=-Me-=-Me-=-
26-04-2008, 09:44 AM
I heard if this odd script
like an email one
it goes on ur site
and its a form
and you can fill in the details like
Name:
Request:
etc.


Anybody Know It?

Decode
26-04-2008, 09:47 AM
Do you mean a from that someone fills in, clicks submit and it sends it to your email or adds it to a text file?

-=-Me-=-Me-=-
26-04-2008, 09:49 AM
yeah thats it
:)
does anyone know were to get it from
or
the actual html or java for it?

Decode
26-04-2008, 09:52 AM
I could code one for you, and its html and php btw :)

-=-Me-=-Me-=-
26-04-2008, 09:54 AM
yeah
sorry

do u mind coding it?
+ repif u do :)

Decode
26-04-2008, 09:58 AM
Save this as form.php


<?php
if($_GET['action'] == "send") {

$Name = $_POST["Name"];
$Request = $_POST["Request"];

$Send = fopen("submitted.txt", "r+");
fputs($Send , "Name: $Name/n");
fputs($Send , "Request: $Request/n/n");
fclose($Send);

echo "Your message has been sent.";
exit();
?>
<form method="post" action="?action=send">

<table width="95%">
<tr><td width="200">Name:</td>
<td><input type="text" style="width: 300px;" name="Name"></td></tr>

<tr><td>Request:</td>
<td><textarea name="Request" style="width: 300px; height: 200px;"></textarea></td></tr>


<tr><td></td><td><br>
<input type="submit" value="Send!">
</td></tr>
</table>
</form>


Then make a blank file called submitted.txt

Then to add the form to a page use this code:


<?php
include("form.php");
?>

-=-Me-=-Me-=-
26-04-2008, 10:08 AM
cant i just copy and paste top one into the text box
(its a blogger but i making it good :) )
so do i just copy top one?

and how does it work?

Protege
26-04-2008, 01:40 PM
Is it basically a "SHOUTBOX"?

-=-Me-=-Me-=-
26-04-2008, 01:48 PM
but how do u use it?

Decode
26-04-2008, 01:56 PM
Can you explain what you want to use it for...

-=-Me-=-Me-=-
26-04-2008, 02:01 PM
www.bloggster.com
i cba with making a full webby nd buying a domain
so im using blogger works aright

so how do u use it?

Want to hide these adverts? Register an account for free!