Log in

View Full Version : I cant hide a field on my site



theremotedr
12-04-2011, 09:56 AM
Hello
I have a site of which i am putting together for a bit of fun and to teach myself but i need a little help from the masters of script if i may.
I have a line of text but need it hidden but whatever i do i cant get it to work.
It is on my contact page with HTML & a recaptcha & also a php file.
What you see on my site is the following.
name then empty field box
email address then empty field box
subject then field box prefilled with WEB SITE ENQUIRY
comments then empty field box.
What i would like is for the complete line in BOLD above to be hidden so
it cant be seen on the website BUT i can see it when the email is received by me.
I am having a bad day by not being able to complete this small task.
Any help would be nice if somebody could edit the script for me.
Many thanks

</script>
<div class="email">

<table>
</tr>
<tr>
<td align="justify">
<p align="justify"><label for="name"><b>Name</b> *</label> </td>
<td valign="top" align="justify">
<p align="justify">
<input type="text" name="name" maxlength="50" size="40"> </td>
<tr>
<td valign="top" align="justify">
<p align="justify"><label for="email"><b>Email Address</b> *</label>
</td>
<td valign="top" align="justify">
<p align="justify">
<input type="text" name="email" maxlength="100" size="40"> </td>

<tr>
<td valign="top" align="justify">
<p align="justify"><label for="subject"><b>Subject</b> *</label>
</td>
<td valign="top" align="justify">
<p align="justify">
<input type="text" name="subject" value="WEB SITE ENQUIRY" maxlength="50" size="40">
</td>
</tr>
<tr>
<td valign="top" align="justify">
<p align="justify"><label for="comments"><b>Comments</b> *</label>
</td>
<td valign="top" align="justify">
<p align="justify">
<textarea name="comments" maxlength="2000" cols="40" rows="6"></textarea>
</td>
</tr>
</table><input class="reset" type="reset" value="Reset All">

jscheuer1
12-04-2011, 06:42 PM
Replace the table with:


<table>
<tr>
<td align="justify">
<p align="justify"><label for="name"><b>Name</b> *</label> </td>
<td valign="top" align="justify">
<p align="justify">
<input type="text" name="name" maxlength="50" size="40"> </td>
</tr>
<tr>
<td valign="top" align="justify">
<p align="justify"><label for="email"><b>Email Address</b> *</label>
</td>
<td valign="top" align="justify">
<p align="justify">
<input type="text" name="email" maxlength="100" size="40">
<input type="hidden" name="subject" value="WEB SITE ENQUIRY">
</td>
</tr>
<tr>
<td valign="top" align="justify">
<p align="justify"><label for="comments"><b>Comments</b> *</label>
</td>
<td valign="top" align="justify">
<p align="justify">
<textarea name="comments" maxlength="2000" cols="40" rows="6"></textarea>
</td>
</tr>
</table><input class="reset" type="reset" value="Reset All">

Note: I left off the preceding </script> and <div> tags. I kept the trailing reset button.

theremotedr
12-04-2011, 06:52 PM
Perfect
Works a treat.

Thanks very much

theremotedr
12-04-2011, 07:11 PM
Hello.
One other question please if i may.
The field boxes next to name,email etc how can i line them up with the recaptcha box & the central them to the screen.
I have tried but the box either goes to far right & then the text drops down a line or two or it all becomes out out sync.
I know what i am doing to a point but beyond that i would like to ask for help if i may so i dont make it worse.

jscheuer1
12-04-2011, 08:02 PM
I'm not sure I understand where you want the recaptcha box and in any event, you haven't shown the code for it, or enough code for the page to determine how to center anything.

Do you have a live demo? If not, put one up. It doesn't have to do anything or be linked to or from anything. It just has to show the current layout.

Post a link to it, and explain exactly where you want things.

I think I understand that you want this centered horizontally on the page. But if I have that wrong, let me know. I'm not sure where you want the recaptcha box though, "line up with" is kind of vague.

theremotedr
12-04-2011, 08:05 PM
Here is the page
http://www.ianparsons.info/email.htm
As you can see the boxes / text are all over the page
I would just like it to look central & a bit better than what is currently shown.

Thanks for the help.

theremotedr
12-05-2011, 09:23 AM
Hello,
Having a think about it i would say the best option is to have the text above each respective field box & central to the page.
So name,email & comments text & boxes need to be arranged.

Thanks so much for the help.

theremotedr
12-06-2011, 12:59 PM
?????????????

what does that mean address not complete ?

jscheuer1
12-06-2011, 03:34 PM
After looking at the page, I see this has now become more of a basic question about layout and could be approached in a variety of ways, and is a new question. Generally it's the policy of this forum to start a new thread for a new question. Please do so, as I'm closing this thread.