Jump to content

SunTzu

Members
  • Posts

    29
  • Joined

  • Last visited

Posts posted by SunTzu

  1. Hi!If you use localhost as SMTP you need to have a SMTP-server installed on your system.If you don't know how to install (I'm not sure which server to use for Win) it or don't want to you can use either the one provided (if any) by your ISP, or perhaps gmail or similar...
    Hi,Do you know how is this done with gmail ?I did use smtp.gmail.com as SMTP in php.ini but nothing happens.
  2. Yeah, the mail function needs to connect to a mail server. Whenever mail is sent or received, it goes through a server. The settings for which mail server the mail function should use are in php.ini. You can specify any SMTP server you want, and you probably want to leave the port to the default 25. You should be able to check in a mail client like Outlook to figure out which SMTP server it is using, and use the same server for PHP. But that should only be for testing, in a live environment you would probably want to use an SMTP server that is installed locally on the web server.
    Actually i had the same problem and i tried to configure php.ini by setting SMTP = smtp.gmail.com and port 25 but nothing has happened.I did not use an SMTP server as i believed that i could use the gmail's server by configuring properly the php.ini. Am i in the right way or not ?
  3. Hmm, are you sure your host allows PHP?And is the mail() function on? Ask your host. Give me link to your host and I can find out if you don't do it yourself.
    Thnx for your reply ..So, how can i set the mail() function on ? I have just modify SMTP parameter in the php.ini file. I am using gmail so i put SMTP = smtp.gmail.comAlthough, my ISP is this one http://www.tellas.gr/index.asp?gid=28〈=1What is most important here ... the ISP or Gmail ?
  4. Hi,I am using the following simple codes for creating a form with a textarea

    <form method="post" action="sendmail.php">  Email: <input name="email" type="text" /><br />  Message:<br />  <textarea name="message" rows="15" cols="40">  </textarea><br />  <input type="submit" /></form>

    and sending its contents to myaddress using the following php script

    <?php  $email = $_REQUEST['email'];  $message = $_REQUEST['message'];  mail( "myaddress@something.com", "Feedback Form Results",	$message, "From: $email" );  header( "Location: http://www.example.com/thankyou.html" );?>

    but it does not work ...Any help plsss ...

  5. Hi to All ,I have the following cell which is a hyperlink and i am trying to change its link using javascript ...
    <td class="menu" id="jobdesc" onmouseover="openmenu()"><a href="jobdescription.htm">Job Description</a></td>

    Here is the script:

    <script type="text/javascript">function openmenu() {					  document.getElementById("jobdesc").innerHTML = "<a href=\"why.htm\">Job Description</a>";}</script>

    But unfortunately the link seems to be inactive ... (file why.htm is there :) ) What can be wrong?thnx in advance.

    strange .... when i put onmouseover="openmenu()" in the <a> element works fine ... :)
  6. Hi to All ,I have the following cell which is a hyperlink and i am trying to change its link using javascript ...

    <td class="menu" id="jobdesc" onmouseover="openmenu()"><a href="jobdescription.htm">Job Description</a></td>

    Here is the script:

    <script type="text/javascript">function openmenu() {					  document.getElementById("jobdesc").innerHTML = "<a href=\"why.htm\">Job Description</a>";}</script>

    But unfortunately the link seems to be inactive ... (file why.htm is there :) ) What can be wrong?thnx in advance.

  7. Thanks yoshida ..I will try to use Javascript to reload the page with the parameter dept like self.location = xx.php?dept="value" and then get it with $_GET[].Do you think that AJAX would help here ?

  8. Hi to All,I have spent whole day trying to figure out how to populate a drop down list according to the value of another drop down list.I have "departments" and "positions" so when i select a dept. from the first drop down i want the respective positions to populate the other. The problem here is that i need to do that before "Posting" the form which would resolve easily my problem.I tried to use JavaScript but in vain as JS is used at the client side while PhP at the server side.Please advise ...thnx

  9. Could you put it in the url?for example have an address simular to this in your javascript pop-up window code as index.php?variable=$anyvariableand on the pop-up window have <?php $anyvariable=$_GET["variable"]; ?>or maybe something simular
    Great !!!Thank you very much 'Against the Masses' :) You saved me from staying awake one more night :)
  10. Hi to all,I need to pass a php variable ($somevariable) to a pop-up window.I am using JavaScript to open the window but i do not know how to get the respective variable from the opener.Any suggestions?Thank you.

  11. Textarea does not have an attribute "value" :) input does...examples of both textarea and input
    <textarea onclick="this.innerHTML='';this.style.color='red'">Default Text</textarea>

    <input value="Default Text" onclick="this.value='';this.style.color='red'" />

    Is that what you wanted?

    It is not exactly what i am looking for ... You are right about 'value' :) Actually i include some text from another form there (this is my default text) and then i want to add some additional text in the area. So, i need this to be with different color.Thak you anyway :)
  12. Hi everyone,I need your assistance in the following plssssI have a TextArea with a defaule text ( coming from the 'value' attribute) and i want the subsequent text that i will enter to have different color than the default one.Is that possible? and if yes how can i implement such a thing ...thnx in advance

  13. first problem: Error Line 121 column 88: there is no attribute "background"....dding="1" cellspacing="0" background="pictures/fondtest4.gif" style="backgrou
    Hi,I am newbie too :) but for the first problem i think that you could include your background image in the 'style' attribute. Also use 'background-image' instead of 'background'.Do not take this for granted ... but you could try.
  14. here is the valid version of your code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Web Tecnologies - Homework 1</title><link rel="stylesheet" type="text/css" href="style.css"/><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /></head><body><form method="post" action="SubmitAction.txt"><table cellspacing="0px" summary="Top 10 Sites List!"><colgroup><col span="5"/><col span="1" width="1%" align="center"/></colgroup><tr><th rowspan="14" style="width:12%;background-image: url(alien.gif); background-repeat: repeat-y"></th><th class="banner" colspan="5" valign="top">Welcome to our top 10 Sites List</th></tr><tr><th align="left">No</th><th>Web Site</th><th>URL</th><th>Keywords</th><th>Vote</th></tr><tr class="rowstyle1"><td>1</td><td>Europe's Soccer Web Site</td><td><a href="http://www.uefa.com">UEFA Official Site</a></td><td>Soccer, Champions League, UEFA Cup, Matchday</td><td><input name="vote" type="radio" value="uefa" /></td></tr><tr class="rowstyle2"><td>2</td><td>Sports Live Streaming</td><td><a href="http://live.supersport.gr/default.aspx">Supersport-Live Streaming</a></td><td>Streaming, live, football, Sport Events</td><td><input name="vote" type="radio" value="supersport" /></td></tr><tr class="rowstyle3"><td>3</td><td>All about Space and Aeronautics</td><td><a href="http://www.nasa.gov/externalflash/nasa_gen/index.html">Nasa Official Site</a></td><td>Space, Aeronautics, Nasa, Space Shuttle, Solar System, Space Sciences</td><td><input name="vote" type="radio" value="nasa" /></td></tr><tr class="rowstyle4"><td>4</td><td>Torrent Full Downloads</td><td><a href="http://www.fulldls.com">Full Downloads</a></td><td>Torrent, Free, Download, Free Software, Movies, Music</td><td><input name="vote" type="radio" value="fulldls" /></td></tr><tr class="rowstyle5"><td>5</td><td>Web Based E-mail Service</td><td><a href="http://www.hotmail.com">Hotmail</a></td><td>E-mail, Messanger, POP, SMTP, MSN</td><td><input name="vote" type="radio" value="site5" /></td></tr><tr class="rowstyle6"><td>6</td><td>News from all around the World</td><td><a href="http://www.cnn.com">CNN World News</a></td><td>News, World, Market, Politics</td><td><input name="vote" type="radio" value="cnn" /></td></tr><tr class="rowstyle7"><td>7</td><td>Greek News</td><td><a href="http://www.in.gr">In.GR</a></td><td>Greek News, TV, Cinema, Entertainment</td><td><input name="vote" type="radio" value="in" /></td></tr><tr class="rowstyle8"><td>8</td><td>Hellenic On-line Radio</td><td><a href="http://www.e-radio.gr">Hellenic e-Radio</a></td><td>Radio, Music, e-Radio, Radio Streaming</td><td><input name="vote" type="radio" value="eradio" /></td></tr><tr class="rowstyle9"><td>9</td><td>Gateway to the European Union</td><td><a href="http://europa.eu/">European Union Web Site</a></td><td>Europe, Union, Europa, EU, Programmes</td><td><input name="vote" type="radio" value="europe" /></td></tr><tr class="rowstyle10"><td>10</td><td>The latest News about Technology</td><td><a href="http://www.insomnia.gr/">Insomina</a></td><td>Technology, Mobile, Telephony, Telecommunications, Software, Computer</td><td><input name="vote" type="radio" value="insomnia" /></td></tr><tr class="rowstyle0"><td colspan="2"><input name="other site" type="text" value="Other Site (Description)" size="40" maxlength="50" /></td><td><input name="other url" type="text" value="Type URL" size="30" maxlength="30"/></td><td>Other Keywords</td><td><input name="vote" type="radio" value="other vote" checked="checked" /></td></tr><tr><td align="center" colspan="5"><input name="send" type="submit" value="Submit" /><input name="clear" type="reset" value="Clear All" /></td></tr></table></form></body></html>

    Your main problem was that you declared the page as XML on line 1 then on line 2 said it was XHTML 1.1....this was the cause of the "Unknown Parse Mode"...I cleaned up the code a bit for you as well so it would pass validation.

    Great !!!Thank you very much for your time.A usefull hint for me was to include 'width' for the <th> in the 'style' attribute.thnx again.
  15. please post the full code
    Here we are ...In this case i am using xhtml11 but beleive i have tried also xhtml1.0 Transitional , Strict etc ...
    <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE HTML PUBLIC "-//w3c//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"><html xmlns="http://www.w3.org/1999/xhtml">	<head>		<title>Web Tecnologies - Homework 1</title>		<link rel="stylesheet" type="text/css" href="style.css">	</head>		<body>  		<form method="post" action="SubmitAction.txt">			<table  cellspacing="0px" summary="Top 10 Sites List!">			<colgroup>				<col span="5">				<col span="1" width="1%" align="center">			</colgroup>							<tr>					<th width="12%" rowspan="14" style="background-image:  url(alien.gif); background-repeat: repeat-y"></th>					<th class="banner" colspan="5" valign="top">Welcome to our top 10 Sites List</th>				</tr>								 					<tr>					<th align="left">No</th>					<th>Web Site</th>					<th>URL</th>					<th>Keywords</th>					<th>Vote</th>				</tr>				<tr class="rowstyle1">					<td>1</td>					<td>Europe's Soccer Web Site</td>					<td><a href="http://www.uefa.com">UEFA Official Site</a></td>					<td>Soccer, Champions League, UEFA Cup, Matchday</td>					<td><input name="vote" type="radio" value="uefa" /></td>				</tr>				<tr class="rowstyle2">					<td>2</td>					<td>Sports Live Streaming</td>					<td><a href="http://live.supersport.gr/default.aspx">Supersport-Live Streaming</a></td>					<td>Streaming, live, football, Sport Events</td>					<td><input name="vote" type="radio" value="supersport" /></td>				</tr>				<tr class="rowstyle3">					<td>3</td>					<td>All about Space and Aeronautics</td>					<td><a href="http://www.nasa.gov/externalflash/nasa_gen/index.html">Nasa Official Site</a></td>					<td>Space, Aeronautics, Nasa, Space Shuttle, Solar System, Space Sciences</td>					<td><input name="vote" type="radio" value="nasa" /></td>				</tr>				<tr class="rowstyle4">					<td>4</td>					<td>Torrent Full Downloads</td>					<td><a href="http://www.fulldls.com">Full Downloads</a></td>					<td>Torrent, Free, Download, Free Software, Movies, Music</td>					<td><input name="vote" type="radio" value="fulldls" /></td>				</tr>				<tr class="rowstyle5">					<td>5</td>					<td>Web Based E-mail Service</td>					<td><a href="http://www.hotmail.com">Hotmail</a></td>					<td>E-mail, Messanger, POP, SMTP, MSN</td>					<td><input name="vote" type="radio" value="site5" /></td>				</tr>				<tr class="rowstyle6">					<td>6</td>					<td>News from all around the World</td>					<td><a href="http://www.cnn.com">CNN World News</a></td>					<td>News, World, Market, Politics</td>					<td><input name="vote" type="radio" value="cnn" /></td>				</tr>				<tr class="rowstyle7">					<td>7</td>					<td>Greek News</td>					<td><a href="http://www.in.gr">In.GR</a></td>					<td>Greek News, TV, Cinema, Entertainment</td>					<td><input name="vote" type="radio" value="in" /></td>				</tr>				<tr class="rowstyle8">					<td>8</td>					<td>Hellenic On-line Radio</td>					<td><a href="http://www.e-radio.gr">Hellenic e-Radio</a></td>					<td>Radio, Music, e-Radio, Radio Streaming</td>					<td><input name="vote" type="radio" value="eradio" /></td>				</tr>				<tr class="rowstyle9">					<td>9</td>					<td>Gateway to the European Union</td>					<td><a href="http://europa.eu/">European Union Web Site</a></td>					<td>Europe, Union, Europa, EU, Programmes</td>					<td><input name="vote" type="radio" value="europe" /></td>				</tr>				<tr class="rowstyle10">					<td>10</td>					<td>The latest News about Technology</td>					<td><a href="http://www.insomnia.gr/">Insomina</a></td>					<td>Technology, Mobile, Telephony, Telecommunications, Software, Computer</td>					<td><input name="vote" type="radio" value="insomnia" /></td>				</tr>				<tr class="rowstyle0">					<td colspan="2"><input name="other site" type="text" value="Other Site (Description)" size="40" maxlength="50" /></td>					<td><input name="other url" type="text" value="Type URL" size="30" maxlength="30"/></td>					<td>Other Keywords</td>					<td><input name="vote" type="radio" value="other vote" checked="checked" /></td>				</tr>				<tr>					<td align="center" colspan="5">						<input name="send" type="submit" value="Submit" />						<input name="clear" type="reset" value="Clear All" />								</td>				</tr> 		</table>		</form>		</body>		</html>

    thnx

  16. Hi to all ,This is my first post here , i am not a professional developer so i will be as brief and concise as possible.I have a very simple code only for screen (without Jscripts, JSPs, PHPs etc) but i cannot validate it.I am trying on W3C validator but i keep receiving "Unknown Parse Mode!". No other errors are reported there so i assume that this is it ... obviously. I have tried all valid DTDs but still nothing.Any suggestions ??

×
×
  • Create New...