UGN Security
Posted By: BackSlash form help - 06/12/02 04:29 AM
i was wondering if anyone could tell me how to make it so that if i set up a link to a page and make it something like this "http://www.undergroundnews.com&mytext=hey"

if i had a text box on that page, how do i make it so that whatever is in the url "mytext=hey" comes up in that text box? if you know give me some help. thanks
Posted By: Gremelin Re: form help - 06/12/02 09:18 AM
it'd have to be somehting like http://www.undergroundnews.com/index.html?t=Hey%20you%20limey%20whore!

and a lotta [censored] can do that, depends on how cool you are...
Posted By: BackSlash Re: form help - 06/12/02 05:52 PM
but if i'm not cool i don't get help??? your cruel
Posted By: Gremelin Re: form help - 06/12/02 07:54 PM
I'm a [censored], i don't like to help people....
Posted By: Le4rner Re: form help - 06/13/02 02:17 AM
I do.... laugh heh gizmo hasn't eaten his newbie snack today.

I'm not sure what you are trying to do here. Are you trying to fill a text block or have it create a text page? and mostlikely you will need a server side language of some sort. i.e... PHP perl, python ect ect....

My PHP mail form is below this topic.
Posted By: Le4rner Re: form help - 06/13/02 02:29 AM
Your basic HTML form lets say it is saved as form.html

Code
  
<html>
<head>
<title>Form</title>
</head>
<body bgcolor="#FFFFFF">

<FORM ACTION="test.php" METHOD="POST">Your Freinds name



<INPUT TYPE="text" NAME="name" SIZE="20" MAXLENGTH="30">


Your Name



<INPUT TYPE="text" NAME="freind" SIZE="20" MAXLENGTH="30">



Their e-mail address


Your message about this site<
br>

<INPUT TYPE="text" NAME="message" SIZE="50" MAXLENGTH="90">



<INPUT TYPE="submit" VALUE="Send it!">
</FORM>
</body>
</html>
Now notice in the form action it says test.php Well that calls for a seperate page to process the info

Code
 
<?php
mail ("$email", "$name... $freind wants you to check this site", 
"$message !n http://rrfn.promodtecnologies.com !");?>  
And the above code is what you would find on that page. The file is save as test.php and processes the variables from the form.

This one sends and e-mail out.

it uses the
mail () function
in PHP **this requires sendmail to be installed**

All the $words you see are the variables from the HTML form.

$email", is who this will be sent to

"$name, The persons name who will recive it

$freind The name of who sent it

wants you to check this site this will apear in the subject line

And there is more, I myself am still learning PHP. but you can add a reply to function in the header with will give the correct e-mail addy to reply to.
© UGN Security Forum