Jump to content

misslilbit02

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

misslilbit02's Achievements

Member

Member (2/5)

0

Reputation

  1. This is what I need to accomplish. I'm using Google's Provisional API and I'm trying to retrieve a list of users I already have created. I need to send to Google Content-type: application/atom+xml Authorization: GoogleLogin auth=your-authentication-token As headers in PHP. I also need to send a Get request to the page: https://www.google.com/a/feeds/{domain}/user/2.0 and I'm totally lost as to how to do this without using a form. My attempt at the headers is below. Is that considered correct? <?php header("Content-Type: Application/atom+xml"); header("Authorization: GoogleLogin auth=[auth token]"); ?> As for the GET request what would that code look like?
  2. Can someone give me an example on how to do this because this isn't working for me and i"ve never done this before. $request = ''; foreach ($_GET as $key => $value) { $value = urlencode(stripslashes($value)); if ( $body != '' ) { $body.= '&'; } $body.= "$key=$value"; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, '[url]' ); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $body); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $output = curl_exec($ch); curl_close($ch); if (strstr($output, "Success") ) { header("[url]"); } else { header("[url]"); } Where do I send the response in all of this?
  3. I'm receiving post from various vendors...and I'm trying to send a response back to them saying whether I received the post sucessfully or not. My thoughts were to use CURL. I'm not totally clear as to how I should handle this but this is what I did. I collected the info posted to one page then via CURL I redirected the information to another page that says wether or not the the post was successful and based on wether it was successful or not then the script is redirected to a confirmation page. My biggest issue is I'm trying to send a response to the server that posted to me saying wether or not the post was successful. Can someone please direct me in the right direction?
  4. Well this is a PHP question because I'm using PHP and a mysql database to output it to the browser. Sorry I wasn't clear about that. My question is how do I format data out of a mysql database? I know how to print tables and things of that nature and I know this is very elementary but I have all of these entries in a mysql database and I want format the output so that every entry that comes out has indented paragraphs and has break after every 7-10 lines of data. How do I go about doing that.
  5. Hi, I need a little help formatting data. When I print the data out I want it to indent every paragraph and return after every 7-10 lines. Can someone help me with this?
  6. I'm only passing two variables email and counselor name how is that too much being sent across the browser I've seen a whole lot mre being sent across a browser. Secondly, if I send this hidden value I would still have to send things across the browser because there is a mini site with about 4 links that lead to each form and some how it has to be stated which counselor this information is for how do you advise I do that. Like I said before each counselor has a link with their information in it. Now what do I have pass a number in the browser, hide email addresses in code, and pass them along via post.
  7. ok well this is the issue with that I have let's say 50 admission counselors who have three forms that has to come to them. The issue is that most of the students don't know who their counselor is so we pass the counselor's email and name across the browser so that they can get the information in the forms. What would be a better way of handling this being that 99% of the time the student does not know who their counselor is.
  8. This is also on a Windows IIS server. That might have something to do with it who knows. I was also thinking maybe it the specs on the users computers I don't know but it's just weird how sometimes this work and sometimes it doesn't. There are some cases where I have the email emailed to the counselor and myself and it will come to me with none of the information pulled from the broswer it won't have the counselor's name or email address and since that information isn't grabbed it never gets to the counselor.
  9. <?php $to = $_GET['email']; $subject="Demographics Form"; $from =$_GET['email']; $counselor=$_GET['counselor']; $body="Hello $counselor, The user reponses are as follows: Race/National Origin: $_POST[Race1] $_POST[Consideration_upon_disability] I wish to request special consideration based upon disability Explanation: $_POST[Disability_explanation] US Verteran: $_POST[uS_Military]"; mail($to, $subject, $body, "From: $from"); header(" "); ?>
  10. This is the problem...I give out this link that passes information along the browser it's something like this http://domainname.com?counselor=counselorname&email=counseloremail In order to get the information of course I use $_GET The problem I keep having with this is that sometimes the information is sent and nothing is ever received. Some days this solution works great and other days this solution is a nightmare. Could someone please tell why is that the information sent is not being received?
  11. that's a lot of code to put here that's why I didn't but here it is: <?php if(isset($_GET['id']) && !$_GET['id'] = "") { load_swf(); } else { load_thumbnails(); } function load_thumbnails() { $thispage = $_SERVER['PHP_SELF']; $form_page = <<<EOFORMPAGE <HTML> <HEAD> <title>Online Library</title> <script type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> <!-- .style1 {font-family: Geneva, Arial, Helvetica, sans-serif} .style2 {font-family: Geneva, Arial, Helvetica, sans-serif; font-weight: bold; } body { background-color: #FFFFFF; margin-top: 0px; margin-left: 0px; } a:link { color: 666666; } a:visited { color: 666666; } a:hover { color: cccccc; } a:active { color: cccccc; } --> </style> <script language="JavaScript"> <!-- Hide the script from old browsers -- function surfto(form) { var myindex=form.dest.selectedIndex if (myindex!=0){ window.open(form.dest.options[myindex].value, "_self")}; } // --End Hiding Here --> </script> </head> <body onload="MM_preloadImages('images/accounting2.jpg','images/alternative medicine2.jpg','images/applied management2.jpg','images/AQUATIC ENGINEERING2.jpg','images/aviation management2.jpg','images/aviation science2.jpg','images/baking and pastry arts2.jpg','images/business administration2.jpg','images/computer animation design and drafting2.jpg','images/COMPUTER GRAPHICS AND DESIGN2.jpg','images/computer networking and security mgmt2.jpg','images/computer networking with emerging technologies2.jpg','images/computer programming2.jpg','images/construction management2.jpg','images/criminal justice2.jpg','images/crrime scene technology2.jpg','images/culinary arts2.jpg','images/diagnostic medical sonography2.jpg','images/elementary education2.jpg','images/fashion design and merchandising2.jpg','images/fire science2.jpg','images/health services2.jpg','images/health services administration2.jpg','images/homeland security2.jpg','images/massage therapy2.jpg','images/medical assisting2.jpg','images/medical billing and coding2.jpg','images/medical laboratory technology2.jpg','images/mgmt information systems2.jpg','images/NUCLEAR MEDICINE TECHNOLOGY2.jpg','images/physical therapy assistant2.jpg','images/pratical nurse2.jpg','images/professional aviation2.jpg','images/radiologic technology2.jpg','images/spa management2.jpg','images/sports medicine and fitness technology2.jpg','images/surgical technology2.jpg','images/video game design2.jpg','images/nursing2.jpg','images/occupational therapy assitant2.jpg','images/paralegal studies2.jpg','images/paramedical esthetician2.jpg','images/pharmacy technology2.jpg')"> <table width="674" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="674" bgcolor="#999999"><table width="600" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC"> <tr> <td width="600" bgcolor="#FFFFFF"><div align="left"> <table border="0" cellspacing="0" width="600" cellpadding="0" height="140"> <tr> <td width="600" valign="top" align="left" height="132" bgcolor="#800000"><img src="images/online_librarysm.jpg" width="800" height="168" /></td> </tr> <tr> <td width="600" align="center" valign="top" bgcolor="#C0C0C0"> <form name="myform" id="myform"> <div align="center"> <select name="dest" id="dest" size="1"> <option selected="selected" value="">Select Category</option> <option value="heredoc2.php?id=accounting.swf">Accounting</option> <option value="books.php?id=alternative medicine.swf">Alternative Medicine</option> <option value="">Applied Management</option> <option value="">Aquatic Engineering</option> <option value="books.php?id=baking and pastry arts.swf">Baking & Pastry Arts</option> <option value="books.php?id=business administration.swf">Business Administration</option> <option value="books.php?id=computer animation design and drafting.swf">Computer Animation Desgin & Drafting</option> <option value="books.php?id=computer graphics.swf">Computer Graphics</option> <option value="books.php?id=computer networking.swf">Computer Networking</option> <option value="books.php?id=computer networking wermerging.swf">Computer Networking with Emerging Technologies</option> <option value="books.php?id=computer programming.swf">Computer Programming</option> <option value="">Computer Animation</option> <option value="books.php?id=crime scene technology.swf">Crime Scene Technology</option> <option value="books.php?id=criminal justice.swf">Criminal Justice</option> <option value="">Culinary Arts</option> <option value="">Diagnostic Medical Sonography</option> <option value="">Elementary Education</option> <option value="">EMT</option> <option value="books.php?id=fashion design and merchandising.swf">Fashion Design & Merchandising</option> <option value="books.php?id=fire science.swf">Fire Science</option> <option value="">GE Biology</option> <option value="">GE Federal Agencies</option> <option value="">GE History</option> <option value="">GE Literature</option> <option value="">GE Mathematics</option> <option value="">Health Services</option> <option value="books.php?id=health services administration.swf">Health Service Administration</option> <option value="books.php?id=HOMELAND SECURITY.swf">Homeland Security</option> <option value="books.php?id=Information Technology.swf">Information Technology</option> <option value="books.php?id=Management Information Systems.swf">Management Information Systems</option> <option value="books.php?id=Massage Assisting.swf">Massage Assisting</option> <option value="books.php?id=Massage Therapy.swf">Massage Therapy</option> <option value="">Medical Assisting</option> <option value="">Medical Billing & Coding</option> <option value="">Medical Laboratory</option> <option value="books.php?id=Nuclear Medicine.swf">Nuclear Medicine</option> <option value="books.php?id=Nursing.swf">Nursing</option> <option value="books.php?id=Occupational Therapy.swf">Occupational Therapy</option> <option value="">Occupation Therapy Assistant</option> <option value="books.php?id=Paralegal Studies.swf">Paralegal Studies</option> <option value="">Paramedical Esthetician</option> <option value="">Pharmacy Technology</option> <option value="books.php?id=Physical Therapy Assistant.swf">Physical Therapy Assistant</option> <option value="books.php?id=Radiologic Technology.swf">Radiologic Technology</option> <option value="books.php?id=sports medicine and fitness technology.swf">Sports Medicine & Fitness Technology</option> <option value="books.php?id=Surgical Technology.swf">Surgical Technology</option> <option value="books.php?id=ultrasound.swf">Ultrasound</option> <option value="books.php?id=video game design.swf">Video Game Design</option> </select> <input name="button" type="button" onclick="surfto(this.form)" value="Go" /> </div> </form></td> </tr> </table> </div> <p> </p> <p align="center" class="style1">Please select the book with your major to view our resources or select the first letter<br /> of your major to be directed to your degree program. <br /> <br /> <strong class="style2"><a href="books.htm#ab">A</a> <a href="books.htm#ab">B</a> <a href="books.htm#bc">C</a> <a href="books.htm#cf">D</a> <a href="books.htm#cf">E</a> <a href="books.htm#fn">F</a> <a href="books.htm#fn">G</a> <a href="books.htm#gm">H</a> <a href="books.htm#gm">I</a> <a href="books.htm#gm">J</a> <a href="books.htm#gm">K</a> <a href="books.htm#gm">L</a> <a href="books.htm#gm">M</a> <a href="books.htm#mp">N</a> <a href="books.htm#mp">O</a> <a href="books.htm#mp">P</a> <a href="books.htm#ps">Q</a> <a href="books.htm#ps">R</a> <a href="books.htm#ps">S</a> <a href="books.htm#sz">T</a> <a href="books.htm#sz">U</a> <a href="books.htm#sz">V</a> <a href="books.htm#sz">W</a> <a href="books.htm#sz">X</a> <a href="books.htm#sz">Y</a> <a href="books.htm#sz">Z</a></strong> </p> <p class="style1"> </p> <p class="style2"> <a name="ab" id="ab"></a>A - B </p> <p><a href="heredoc2.php?id=accounting.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('accounting','','images/accounting2.jpg',1)"><img src="images/accounting.jpg" alt="1" name="accounting" width="78" height="100" border="0" id="accounting" /></a> <a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('alt medicine','','images/alternative medicine2.jpg',1)"><img src="images/alternative medicine.jpg" alt="2" name="alt medicine" width="76" height="100" border="0" id="alt medicine" /></a> <a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('applied mgmt','','images/applied management2.jpg',1)"><img src="images/applied management.jpg" alt="3" name="applied mgmt" width="72" height="100" border="0" id="applied mgmt" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('aquatic engineering','','images/AQUATIC ENGINEERING2.jpg',1)"><img src="images/AQUATIC ENGINEERING.jpg" alt="4" name="aquatic engineering" width="82" height="100" border="0" id="aquatic engineering" /></a> <a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('aviation mgmt','','images/aviation management2.jpg',1)"><img src="images/aviation management.jpg" alt="5" name="aviation mgmt" width="70" height="100" border="0" id="aviation mgmt" /></a> <a href="aviation_science.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('aviation science','','images/aviation science2.jpg',1)"><img src="images/aviation science.jpg" alt="6" name="aviation science" width="73" height="100" border="0" id="aviation science" /></a><a href="books.php?id=baking and pastry arts.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('baking','','images/baking and pastry arts2.jpg',1)"><img src="images/baking and pastry arts.jpg" alt="7" name="baking" width="81" height="100" border="0" id="baking" /></a></p> <p><img src="images/grey_strip.jpg" alt="9" width="800" height="1" /></p> <p class="style2"> <a name="bc" id="bc"></a>B - C </p> <p><a href="books.php?id=business administration.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('business admin','','images/business administration2.jpg',1)"><img src="images/business administration.jpg" alt="2" name="business admin" width="74" height="100" border="0" id="business admin" /></a><a href="books.php?id=computer animation design and drafting.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('cadd','','images/computer animation design and drafting2.jpg',1)"><img src="images/computer animation design and drafting.jpg" alt="3" name="cadd" width="71" height="100" border="0" id="cadd" /></a><a href="books.php?id=computer graphics.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('CGAD','','images/COMPUTER GRAPHICS AND DESIGN2.jpg',1)"><img src="images/COMPUTER GRAPHICS AND DESIGN.jpg" alt="4" name="CGAD" width="75" height="100" border="0" id="CGAD" /></a><a href="books.php?id=computer networking.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('CNSM','','images/computer networking and security mgmt2.jpg',1)"><img src="images/computer networking and security mgmt.jpg" alt="5" name="CNSM" width="75" height="100" hspace="10" border="0" id="CNSM" /></a><a href="books.php?id=computer networking.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('CNWET','','images/computer networking with emerging technologies2.jpg',1)"><img src="images/computer networking with emerging technologies.jpg" alt="6" name="CNWET" width="81" height="100" border="0" id="CNWET" /></a><a href="books.php?id=computer programming.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('computer_programming','','images/computer programming2.jpg',1)"><img src="images/computer programming.jpg" alt="7" name="computer_programming" width="76" height="100" border="0" id="computer_programming" /></a><a href="books.php?id=construction_mgmt.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('construction','','images/construction management2.jpg',1)"><img src="images/construction management.jpg" alt="8" name="construction" width="72" height="100" border="0" id="construction" /></a><a href="criminal_justice.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('criminal justice','','images/criminal justice2.jpg',1)"><br /> </a></p> <p><img src="images/grey_strip.jpg" alt="7" width="800" height="1" /></p> <p class="style2"> <a name="cf" id="cf"></a> C - F </p> <p><a href="dms.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('DMS','','images/diagnostic medical sonography2.jpg',1)"></a><a href="books.php?id=criminal justice.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('criminal justice','','images/criminal justice2.jpg',1)"><img src="images/criminal justice.jpg" alt="9" name="criminal justice" width="75" height="100" hspace="6" border="0" id="criminal justice" /></a><a href="books.php?id=crime scene technology.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('CST','','images/crrime scene technology2.jpg',1)"><img src="images/crrime scene technology.jpg" alt="10" name="CST" width="72" height="100" border="0" id="CST" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('CA','','images/culinary arts2.jpg',1)"><img src="images/culinary arts.jpg" alt="11" name="CA" width="70" height="100" border="0" id="CA" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('dms','','images/diagnostic medical sonography2.jpg',1)"><img src="images/diagnostic medical sonography.jpg" alt="12" name="dms" width="72" height="100" border="0" id="dms" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ee','','images/elementary education2.jpg',1)"><img src="images/elementary education.jpg" alt="13" name="ee" width="76" height="100" hspace="12" border="0" id="ee" /></a><a href="books.php?id=fashion design and merchandising.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('FDAM','','images/fashion design and merchandising2.jpg',1)"><img src="images/fashion design and merchandising.jpg" alt="14" name="FDAM" width="74" height="100" border="0" id="FDAM" /></a><a href="books.php?id=fire science.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('fire science','','images/fire science2.jpg',1)"><img src="images/fire science.jpg" alt="15" name="fire science" width="74" height="100" border="0" id="fire science" /></a><br /> </p> <p><img src="images/grey_strip.jpg" alt="6" width="800" height="1" /></p> <p class="style2"> <a name="gm" id="gm"></a>G - M </p> <p><a href="mt.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('MT','','images/massage therapy2.jpg',1)"></a><a href="mlt.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('mlt','','images/medical laboratory technology2.jpg',1)"></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('health services','','images/health services2.jpg',1)"><img src="images/health services.jpg" alt="17" name="health services" width="74" height="100" border="0" id="health services" /></a><a href="books.php?id=health services administration.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('HSA','','images/health services administration2.jpg',1)"><img src="images/health services administration.jpg" alt="16" name="HSA" width="74" height="100" border="0" id="HSA" /></a><a href="books.php?id=HOMELAND SECURITY.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('HS','','images/homeland security2.jpg',1)"><img src="images/homeland security.jpg" alt="18" name="HS" width="72" height="100" border="0" id="HS" /></a><a href="books.php?id=Massage Therapy.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('mt','','images/massage therapy2.jpg',1)"><img src="images/massage therapy.jpg" alt="19" name="mt" width="72" height="100" border="0" id="mt" /></a><a href="books.php?id=Medical Assisting.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ma','','images/medical assisting2.jpg',1)"><img src="images/medical assisting.jpg" alt="20" name="ma" width="71" height="100" hspace="12" border="0" id="ma" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('MBC','','images/medical billing and coding2.jpg',1)"><img src="images/medical billing and coding.jpg" alt="21" name="MBC" width="73" height="100" border="0" id="MBC" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('mlt','','images/medical laboratory technology2.jpg',1)"><img src="images/medical laboratory technology.jpg" alt="22" name="mlt" width="70" height="100" border="0" id="mlt" /></a><a href="cnsm.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('CNSM','','images/computer networking and security mgmt2.jpg',1)"><span class="style1"></span></a><br /> </p> <p><img src="images/grey_strip.jpg" width="800" height="1" /></p> <p class="style2"> <a name="mp" id="mp"></a>M - P </p> <p><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('MIS','','images/mgmt information systems2.jpg',1)"><img src="images/mgmt information systems.jpg" alt="23" name="MIS" width="79" height="100" border="0" id="MIS" /></a><a href="books.php?id=Nuclear Medicine.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('NMT','','images/NUCLEAR MEDICINE TECHNOLOGY2.jpg',1)"><img src="images/NUCLEAR MEDICINE TECHNOLOGY.jpg" alt="24" name="NMT" width="71" height="100" border="0" id="NMT" /></a><a href="books.php?id=Nursing.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('nursing','','images/nursing2.jpg',1)"><img src="images/nursing.jpg" alt="25" name="nursing" width="70" height="100" border="0" id="nursing" /></a><a href="books.php?id=Occupational Therapy.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ota','','images/occupational therapy assitant2.jpg',1)"><img src="images/occupational therapy assitant.jpg" alt="26" name="ota" width="72" height="100" border="0" id="ota" /></a><a href="books.php?id=Paralegal Studies.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ps','','images/paralegal studies2.jpg',1)"><img src="images/paralegal studies.jpg" alt="27" name="ps" width="74" height="100" hspace="12" border="0" id="ps" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pe','','images/paramedical esthetician2.jpg',1)"><img src="images/paramedical esthetician.jpg" alt="28" name="pe" width="77" height="100" border="0" id="pe" /></a><a href="book.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pt','','images/pharmacy technology2.jpg',1)"><img src="images/pharmacy technology.jpg" alt="29" name="pt" width="72" height="100" border="0" id="pt" /></a></p> <p><img src="images/grey_strip.jpg" alt="2" width="800" height="1" /></p> <p><a href="pn.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pratical nurse','','images/pratical nurse2.jpg',1)"><span class="style1"></span></a><span class="style2"> <a name="ps" id="ps"></a> P - S </span></p> <p><span class="style1"><a href="books.php?id=Physical Therapy Assistant.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pta','','images/physical therapy assistant2.jpg',1)"><img src="images/physical therapy assistant.jpg" alt="30" name="pta" width="74" height="100" border="0" id="pta" /></a></span><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pratical nurse','','images/pratical nurse2.jpg',1)"><img src="images/pratical nurse.jpg" alt="31" name="pratical nurse" width="74" height="100" border="0" id="pratical nurse" /></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('pro_aviation','','images/professional aviation2.jpg',1)"><img src="images/professional aviation.jpg" alt="32" name="pro_aviation" width="75" height="100" border="0" id="pro_aviation" /></a><a href="rt.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('RT','','images/radiologic technology2.jpg',1)"></a><a href="books.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('sm','','images/spa management2.jpg',1)"><img src="images/spa management.jpg" alt="34" name="sm" width="73" height="100" border="0" id="sm" /></a><a href="books.php?id=sports medicine and fitness technology.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('SMFT','','images/sports medicine and fitness technology2.jpg',1)"><img src="images/sports medicine and fitness technology.jpg" alt="35" name="SMFT" width="75" height="100" border="0" id="SMFT" /></a><a href="books.php?id=Surgical Technology.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ST','','images/surgical technology2.jpg',1)"><img src="images/surgical technology.jpg" alt="36" name="ST" width="70" height="100" border="0" id="ST" /></a></p> <p><img src="images/grey_strip.jpg" alt="4" width="800" height="1" /></p> <p><span class="style2"> <a name="sz" id="sz"></a>S - Z </span></p> <p><a href="books.php?id=video game design.swf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('VGD','','images/video game design2.jpg',1)"><img src="images/video game design.jpg" alt="37" name="VGD" width="77" height="100" border="0" id="VGD" /></a></p></td> </tr> </table> <p> </p> <p> </p></td></tr> </table> </body></HTML> EOFORMPAGE; echo($form_page); }
  12. Hi, I'm trying to do a here doc. I want didn't pages to appear based on the user selection. So I have the heredoc in different functions. The issue I'm having is somewhere down the line it does not read my php code any longer. So when I write <?php echo $variablename; ?> it won't interpret it. When you look at the source in the browser it writes the php code out and the php code shouldn't been seen in the browser. Is it a problem with the quotes? I'll include a little bit of code so you can see what I'm doing because it's way too much code to put here. <?php if(isset($_GET['id']) && !$_GET['id'] = "") { load_swf(); } else { load_thumbnails(); } function load_thumbnails() { $thispage = $_SERVER['PHP_SELF']; $form_page = <<<EOFORMPAGE <HTML> <HEAD> <title>Online Library</title> <script type="text/JavaScript"> <!-- function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> <!-- .style1 {font-family: Geneva, Arial, Helvetica, sans-serif} .style2 {font-family: Geneva, Arial, Helvetica, sans-serif; font-weight: bold; } body { background-color: #FFFFFF; margin-top: 0px; margin-left: 0px; } a:link { color: 666666; } a:visited { color: 666666; } a:hover { color: cccccc; } a:active { color: cccccc; } --> </style> <script language="JavaScript"> <!-- Hide the script from old browsers -- function surfto(form) { var myindex=form.dest.selectedIndex if (myindex!=0){ window.open(form.dest.options[myindex].value, "_self")}; } // --End Hiding Here --> </script> </head> <body onload="MM_preloadImages('images/accounting2.jpg','images/alternative medicine2.jpg','images/applied management2.jpg','images/AQUATIC ENGINEERING2.jpg','images/aviation management2.jpg','images/aviation science2.jpg','images/baking and pastry arts2.jpg','images/business administration2.jpg','images/computer animation design and drafting2.jpg','images/COMPUTER GRAPHICS AND DESIGN2.jpg','images/computer networking and security mgmt2.jpg','images/computer networking with emerging technologies2.jpg','images/computer programming2.jpg','images/construction management2.jpg','images/criminal justice2.jpg','images/crrime scene technology2.jpg','images/culinary arts2.jpg','images/diagnostic medical sonography2.jpg','images/elementary education2.jpg','images/fashion design and merchandising2.jpg','images/fire science2.jpg','images/health services2.jpg','images/health services administration2.jpg','images/homeland security2.jpg','images/massage therapy2.jpg','images/medical assisting2.jpg','images/medical billing and coding2.jpg','images/medical laboratory technology2.jpg','images/mgmt information systems2.jpg','images/NUCLEAR MEDICINE TECHNOLOGY2.jpg','images/physical therapy assistant2.jpg','images/pratical nurse2.jpg','images/professional aviation2.jpg','images/radiologic technology2.jpg','images/spa management2.jpg','images/sports medicine and fitness technology2.jpg','images/surgical technology2.jpg','images/video game design2.jpg','images/nursing2.jpg','images/occupational therapy assitant2.jpg','images/paralegal studies2.jpg','images/paramedical esthetician2.jpg','images/pharmacy technology2.jpg')"> <table width="674" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="674" bgcolor="#999999"> Thanks for any assistance you can give.
  13. Hi, I have a question that I need help with...I have data coming across the URL from an outside source and I I don't know what the $_POST values are. Is there a way for me to get the information and put it into the database without knowing the values being past across the browser and if so how would I go about doing that? I know you would have mssql_query("INSERT INTO DATABASE_TABLE(column1, column2, coulmn3) VALUES (value1, value2, value3)"); I know how to get the data through a loop but my confusion comes in where you input the values into the database. Without knowing the data how would you insert the values into the database?
  14. I did that before and got all these errors: PHP Warning: PHPMailer::include_once(class.smtp.php) [function.PHPMailer-include-once]: failed to open stream: No such file or directory in C:\php\includes\class.phpmailer.php on line 460 PHP Warning: PHPMailer::include_once() [function.include]: Failed opening 'class.smtp.php' for inclusion (include_path='.;\php\includes') in C:\php\includes\class.phpmailer.php on line 460 PHP Fatal error: Class 'SMTP' not found in C:\php\includes\class.phpmailer.php on line 527 I don't even have a line 527. but this is what was there: $mail->IsSMTP(); $mail->Host = "tim";
  15. No the spam filter isn't catching it and it's a windows server. We use SMTP.
×
×
  • 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.