Jump to content

Actress

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Actress

  1. Hmmmm, I see... The space didn't work, but I got the point. Instead of putting the corner images as background, I placed them as images and it worked! They no longer disappear!The best thing about this was I understand what I was doing wrong...Thanks a lot!
  2. Ok, this is the code for the entire table<table border="0" align="center" cellpadding="0" cellspacing="0" style="height:696px; width:96%"> <tr> <td background="imagens/cse.gif" style="width:27px; height:27px;"></td> <td background="imagens/cima.gif"></td> <td background="imagens/csd.gif" style="width:27px"></td> </tr> <tr> <td background="imagens/esquerda.gif"> </td> <td valign="top" background="imagens/conteudos.gif"> <!--this is an extra table where I put my page contents--> <table border="0" cellspacing="0" cellpadding="0" style="height:100%; width:100%"> <tr> <td style="width:210px"><!--a logo img--></td> <td align="center"> <!--banner--></td> </tr> <tr> <td valign="top" style="width:210px"> <!--here goes a swf menu--><br /></td> <td valign="top"><!--an iframe goes here--></td> </tr> </table></td> <td background="imagens/direita.gif"> </td> </tr> <tr> <td background="imagens/cie.gif" height="27"> </td> <td background="imagens/baixo.gif"> </td> <td background="imagens/cid.gif"></td> </tr></table>
  3. I usually try everything I do on IE, FF and now on Opera... And in all cases the columns start disapearing when I resize the browser...And yes, I tried that option too... Nothing seems to work...
  4. Ok here's my problem:I am making a single html page with a table that has a width of 96%.That table is divided in 3 columns and 3 rows, so I could add on the background some images to act as a frame, like a frame of a painting or so. So the first and third columns have to have exactly 27px wide and tall. The same with the first and third rows.So far so good, because when the browser window is maximized, the table shows perfectly and everything is in place. But when I reduce the browser's width, the first and third columns start getting thinner until they disappear as I resize the browser, showing only the second row.Here's the code of the table: and the code of the first row: I even tried to add style="min-width:27px; max-width:27px;" to the first and third columns to see if it worked, but it stays the same.Does anyone know how to overcome this? I would really appreciate any help! Thanks!
  5. No... Nothing happens at all... It allows PHP because I already did one thing in PHP once and it worked perfectly.
  6. Well, it has to be something else... I made all those changes and still doesn't work... I'm searching for all kinds of tutorials, they all do the "html form - php mail send" solution... I'm losing my sleep here and I'm sure it's a small little detail that I missed... Please anyone help...
  7. Hi!I used to use html pages with forms and when I hit the submit button it would post the data to PHP that would send the data by mail.But now I need to put the form in a PHP page, and I'm having trouble on making the mail code. I think it should work, but it doesn't... I can't figure out what's wrong here... can you help me? <?phpif (isset ($_POST['submit'])) { //these are my variables... checked them lots of times, they are correct $name = $_POST['nome']; $phone = $_POST['telefone']; $details = $_POST['detalhes']; $date = $_POST['data']; $mail = $_POST['email'];//this is just to make sure they fill out all the important fieldsif ($name == "" || $phone == "" || $date == "" || $mail == "") {//message asking to fill out all fields echo "Por favor preencha todos os campos marcados com *"; } else { $recipient = "Life Club <geral@tntvoip.pt>"; $subject = "Reserva"; $mail = $_POST['email']; $msg .= "\n-------------------------------------------\n\n"; $msg .= "Reserva em nome de: "; $msg .= $name; $msg .= "\nTelefone: "; $msg .= $phone; $msg .= "\nDetalhes: "; $msg .= $details; $msg .= "\nData de reserva: "; $msg .= $date; $msg .= "\nE-mail: "; $msg .= $mail; $mailheaders = "De: $mail"; $success = mail("$recipient", "$subject", "$msg", "$mailheaders"); if ($success) {//message stating the e-mail was sent echo "E-mail enviado com sucesso. Obrigado."; } else {//message stating the e-mail was not sent echo "E-mail não enviado correctamente. Por favor tente de novo."; } } }?>
  8. Thanks to both! You've been very helpful!
  9. Hi all!I'm a newbie on PHP and the small things I know I'm learning from tutorials, like sending forms by mail and stuff.But now I'm trying to figure out how to make a multi-language site without having to duplicate the site, only write the text in diferent languages and then load the text only acording to the language chosen. (don't need to change the images)Can it be done in PHP? Can you give me the url to any simple tutorial on how to do that?I only found strange "tutorials" that confuse me even more...Can you help me getting it on? I would be very apreciated!
  10. Actress

    required fields?

    Hey thanks a lot! I'll try that!
  11. I don't mean to be mean here, but next time, be a little patient and wait untill someone answers. Please don't repeat the threads, it's a bit irritating and floods the forum. Thanks!
  12. Actress

    required fields?

    Hi!I have this form in an html page, and the form sends the data to a php file I made out from a tutorial, so it can transfer the data of the fields to my mail.But I'm having a bit of trouble on doing someting that I thought of, especially when people were leaving blank fields. I wanted to have a little code that verified if the required fields were filled.I would rather if the code could be directly on the html page instead of the php, but it really doesn't matter, as long as it works. I tried somethings I found on the net, but neither work... I'm a newbie in php... Can you help me?Many thanks!Ana.
  13. Oh, ok... This means I'm not so dumb as I thought... Ohhh I see what you mean... That's a good Idea! Thanks!
  14. I have this code working in perfect condition: <?php// variáveis$Name = Trim($_POST[nnome]);$EmailFrom = Trim($_POST[nmail]); $EmailTo = "My name here <my e-mail here>";$Subject = "Newsletter";$Result = Trim($_POST[resultado]); //this was my poor attempt to "call" the label I have in my HTML page// validar$validationOK=true;if (Trim($Name)=="") $validationOK=false;if (Trim($EmailFrom)=="") $validationOK=false;if (!$validationOK) { print $Result = "Erro ao enviar"; //here trying to print the error message to my HTML label exit;}// este é o texto que vai estar no body do e-mail$Body .= "Adicionar à newsletter:\n";$Body .= "Nome: ";$Body .= $Name;$Body .= "\n";$Body .= "E-mail: ";$Body .= $EmailFrom;$Body .= "\n";// e-mail a enviar $success = mail($EmailTo, $Subject, $Body, "De: $Name <$EmailFrom>");// mensagem de sucesso ou nãoif ($success){print $Result = "Obrigado pelo registo";} //here trying to print the success message to my HTML label the same way as aboveelse{print $Result = "Erro ao enviar";} //here trying again to print the error message to my HTML label// enviar cópia de e-mail ao subscritormail("$Name <$EmailFrom>", "Sucesso", "O seu e-mail foi adicionado correctamente à nossa base de dados. Obrigado.", "De: My name <my e-mail>");?> It sends the both e-mails already. Works fine that way.But I wanted to pass the error or success messages to my html label, instead of opening a new page.Is it possible?Thanks!
  15. Hi!I'm a newbie in PHP and I followed a tutorial to be able to send a simple "newsletter form" to be sent by e-mail through PHP. The form is in an html page, where PHP gets the data form, and it's working beautifully.But the thing is that when it sends the mail, it opens a new page with only the success message, browsing away from the index.html, that is where I have the newsletter form.So I added a label on the html form and tried to tell PHP to print the success message in the label. But as much as I try, I can't find a way to do that. Can anyone help?Somehow I get the feeling that this is piece of cake to you... Thanks for your time!
×
×
  • Create New...