Jump to content

komquat

Members
  • Posts

    130
  • Joined

  • Last visited

    Never

Everything posted by komquat

  1. Here at my place of business, sending email via SMTP is prohibited, is there another method that I could use to send it through exchange? letter from IT : "SMTP email sending is prohibited here. the ONLY mailing mechanism is the Exchange server. SMTP is disabled on ALL machines " Thank you all for the help
  2. I would try this: if($username=="end") { header("Location: ionline.php"); exit; } Then on the Thank you page, put $username="end";
  3. I do not have control of the php.ini files for my web hosting, so is there a way I can turn it on for the webpage I am working on, then it off when leaving the page?
  4. but this will not update the DB that said you are logged in. I will try this!
  5. I want my page to reload, and not pass any variable that it may have passed on the first load. I think there is a meta tag for the refresh at certain intervals.
  6. What if you leave the page and stay logged in?
  7. try single quotes $_SESSION['user_name'] = $_POST['user_name'];
  8. Is there a difference between reload and refresh? How is this coded in the header?
  9. Can you set up something in sessions that shows who is currently logged in? The forum does it, is that in php? Please point me in the right direction. Thank you
  10. if you take a look at the code in my first post, I did that, it does not pass the information back when you click on the link
  11. Can I send a variable hidden in an email and get it back when they send it back? $mail_message = "<table align='center' border='10'> <tr> <td>$_POST[user_name], you signed up for ---------, Please click on the register here link below</td> </tr> <tr> <form name='send_email' method='POST' action='http://www.andybourdeau.com/lee/register.php'> <input type='hidden' name='register_check' value='yes'> <input type='hidden' name='user_name' value='$_POST[user_name]'> <input type='hidden' name='user_pass' value='$_POST[user_pass]'> <input type='hidden' name='user_email' value='$_POST[user_email]'> <input type='hidden' name='first_name' value='$_POST[first_name]'> <input type='hidden' name='last_name' value='$_POST[last_name]'> </form> </tr> <tr> <td><a href='http://www.andybourdeau.com/lee/register.php' onclick='javascript:document.send_email.submit();return false;'>Register</a></td> </tr> </table>"; //Mail message Set up here $mailmsg .= "<html> <title>Register</title> <body>"; $mailmsg .= "<p align='center'>$mail_message</p> \n"; $mailmsg .= "</body></html>"; $subject = "Register for Website"; $mailheaders = 'MIME-Version: 1.0' . "\r\n"; $mailheaders .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $mailheaders .= "From: webmater@andybourdeau.com"; mail($to, $subject, $mail_message, $mailheaders); I want to get the hidden variables back when I click the link in the email.
  12. By working day, do you mean Mon- Fri? If so, why not get the day of week from the date function and check that against the first working day. $day_num = date(j); if ($day_num <= 3) { $day_name = date(l); //lower case 'L' if (($day_name <> Saturday) or ($day_name <> 'Sunday')) { echo "First Working day"; } else { echo "Weekend"; } } Why not someting like that
  13. Thanks, but this is still not working. I had the same thing work in a script before, but now it is not working!
  14. Why is this not working, I have this in another script and it works just fine. <form method=POST name=view$ff_draft_team_name action='ff_view_roster.php'> <input type=hidden name=view_roster_team value=$ff_draft_tag> </form> <a target= _blank href=javascript:document.view$ff_draft_team_name.submit();>$ff_draft_team_name</a></td>
  15. Thanks I will have to call a new page then!
  16. Can I run a php script with the onmouseover command? Please help if possible, where can I get information on it? Thanks Maybe something like this? <a onmouseover='document.name.??? = script.php'>something</a>
  17. I AM getting 111111 as a variable, I want the first 1 of that series. I can not get it to work with substr(), is there anything else I can do? Thank you
  18. I want to be able to submit a form in one frame and go to a link in the other. I have received help here in javascript and hoping for the same again. here is what I have so far a href='javascript:document.form.submit()' this runs the form, I also need the same click to put the link needed in a different frame. Please help Thanks
  19. Any chance you can point me to a tutorial or something like that? Thanks
  20. I have a system set up with frames, and I want to click on a link and open a file in one frame, and have the other frame submit a form, this is similar to the topic I had before, thanks for the help again.
  21. Thanks, I got it to work in php, now working with it in ASP Thanks a bunch again!!
  22. I can not get it to work, I will have to play with it when I get a little more time
  23. I am using it on a menu system and buttons do not work for it. I am trying to adapt it now, I will let you know how it turns out! Thanks
  24. Here is my relavent code: 'Start of the main menu table response.write "<table align=right height=15 cellspacing=0 cellpadding=0 border=0>" response.write "<tr>" response.write "<td width=5 bgcolor=075B11 height=8> </TD>" Do while not rstmenu.EOF response.write "<form type=post id=test>" response.write "<input type=hidden name=submenu value='yes'>" response.write "<input type=hidden name=menu_id value='" & rstmenu("menu_id") & "'>" response.write "<td width=5 bgcolor=075B11 height=8><font face='Arial, Helvetica, sans-serif' color=white size=1><a href=andy_menu_trial.asp onclick='document.test.submit();return false'>" & rstmenu("menu_title") & "</a></font></td>" response.write "<td width=5 bgcolor=075b11 height=8> </TD>" response.write "</form>" rstmenu.MoveNext Loop 'Finish the table response.write "</tr>" response.write "</table>" %> </td> </tr> <tr> <td colspan=2 align=right> <% response.write request("submenu") If request("submenu") = "yes" Then '################################# '# Contains the Link Information # '################################# ' Define Connection String ' strsubcnn = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=\\Smelter\Lab\DB\menu_trial.mdb;" ' Open connection ' set cnnsubmenu = server.createobject("ADODB.Connection") ' cnnsubmenu.open strsubcnn ' Set rstsubmenu = server.createobject("ADODB.recordset") ' rstsubmenu.open strsubSQL, cnnmenu 'Start of the sub menu table response.write "<table align=right height=15 cellspacing=0 cellpadding=0 border=0>" response.write "<tr>" response.write "<td width=5 bgcolor=009ACD height=8> </TD>" Do while not rstsubmenu.EOF response.write "<td width=5 bgcolor=009ACD height=8><font face='Arial, Helvetica, sans-serif' color=white size=1><a href=reports/" & rstsubmenu("submenu_link") & ">" & rstsubmenu("sub_menu") & "</a></font></td>" response.write "<td width=5 bgcolor=009ACD height=8> </TD>" rstsubmenu.MoveNext Loop 'Finish the table response.write "</tr>" response.write "</table>" End if
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.