--- Alexandra <[EMAIL PROTECTED]> wrote:

> Hi everyone,
> 
> My name is Alexandra and I just joined today, I don't know any PHP,
> but I have encountered an issue that may have to do with PHP
> programing. I do simple websites and create contact forms in Front
> Page, because I haven't figured out how to do it in Dreamweaver, I
> can't figure out how to make the submit button go to the thank you
> page in Dreamweaver, which is why I am using FP. I am self taught,
> with the exception of complicated forms and php.
> 
> Now, here is my issue: when someone fills out a form and clicks
> submit, the email I receive comes from: "anonymous@ and a server name
> and number" and I would like that when someone fills these forms, to
> say the domain name or anything else rather than this email address
> that doesn't exist! is there a way to change that? is this something I
> can change? or is this something the web hosting company has to change?
> 
> Also, the text box where someone can write requests, it is set to no
> constrains, but every time someone types something in, it types
> everything in one horizontal line....and not like a paragraph or line
> under line....is there some fix for that?
> 
> Thank you very very much,
> 
> Alexandra

While it is true that forms are an HTML issue, PHP does get involved in the
processing of the form.

The form tag has two main properties which describe how the form data should be
sent and where it should be sent.

<form method='post' action='script.php'>
...
</form>

The method can be "post" or "get".  Get values are sent as part of the URL and
subject to the length limit imposed by browsers and servers.  

The action property identifies the location (relative or absolute) of the
script that processes the data.  

Perhaps you are using something like action="mailto:[EMAIL PROTECTED]" to send
the data to your email address.  If so, your options are more limited.

Between the opening and closing form tags are the tags for your form inputs. 
These can come in a variety of types:  text fields, checkboxes, radio buttons,
select lists, buttons, and textareas.  

It appears that you are using a textarea for the problem you are describing
with no word wrap.  You can set up a textarea with a wrap='virtual' property
and this will get the word wrap you are looking for:

<textarea rows='10' cols='80' wrap='virtual'>default text</textarea>

If you don't want a default text value displayed, put the opening and closing
tags on the same line with nothing between them.

The [EMAIL PROTECTED] is likely the default user name for the server which
hosts your site.  Many Linux machines have a web server user named "apache" or
"nobody" but "anonymous" or "www" are also seen.  To do anything about this you
will need a PHP script to receive the form data and email it to you (or do
something else with it such as put it in a database, etc.).

James Keeline

Reply via email to