PHP - Moved: Iframes -- Js And Css
This topic has been moved to JavaScript Help.
http://www.phpfreaks.com/forums/index.php?topic=345773.0 Similar TutorialsWhen a link is clicked on one page (listing page), and I want to open it in a new window, I'd like to have a title section across the top say height=30, and the linked web page displayed below. I've been researching and have found that both file_get_contents or iframes could do the job. I briefly attempted iframes src=x but after loading, the web page takes over the browser and the title section disappears. Can I use file_get_contents to display the web page as it's written below the title section? I've seen someone mention using a DIV for it. Could someone provide some guidance? BTW: the title section is going to be used to allow the user to select an alert to be set in my database. But also have the option to 'hide'. Thanks! Hi guys i dont know if this is the right section but i need help with this so here we go ok i have created a program in vb.net that visits a url and sends people a text mesg with there password in it but i need to to this in a web browser 2 what i was thinking is creating a for and then having that for submit the info into a hidden i frame and it would send the msg from therewith out the use ever seeing it sending the msg here is how i think the i frame would work <iframe src=http://myurl.com/?contact=(+44user number)&Text=(users password) width='0' height='0'> the thing is i dont know how to get the user contact and password from the form into the iframe url could this be done in php or would i need to use javascript if any one can help that would be really creat Hello All, I am trying to get some info from my membership script (Amember_Pro) into an iframe within a product page. Inside iframe I have the following code Code: [Select] <?php session_start(); ?>Some HTML Code here... Code: [Select] <?php $user = $_SESSION['_amember_user']; print "$user[member_id]"; ?> Above code is able to print the "_amember_user" ID successfully to the page but on top pf the iframe I get a session error. Code: [Select] "Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/tb/public_html/product1/link1.php:1) in /home/tb/public_html/product1/link1.php on line 2" Does anyone know why this is happening? I have made sure that there is no space or code before <?php session_start(); ?> There is a help guide at http://manual.amember.com/AMember_Session_Variables that I used to create code above. im using this script to upload files i want to use it inside an iframe but get an error it looks like a path to root issue it works fine with no errors NOt in an iframe Code: [Select] if (!empty($_FILES)) { $tempFile = $_FILES['Filedata']['tmp_name']; $targetPath = $_SERVER['DOCUMENT_ROOT'] . $_REQUEST['folder'] . '/'; // $fileTypes = str_replace('*.','',$_REQUEST['fileext']); // $fileTypes = str_replace(';','|',$fileTypes); // $typesArray = split('\|',$fileTypes); // $fileParts = pathinfo($_FILES['Filedata']['name']); $tempName = $_FILES['Filedata']['name']; //$tempNameEnd = explode('.',$tempName); //$tempNameEnd = $tempNameEnd[1]; $tempName = basename($tempName); if (isset($_POST['apartmentID']) && is_numeric($_POST['apartmentID'])) { $tempName = $_POST['apartmentID'].'-'.rand(0,999999).'-'.$tempName; //.$tempNameEnd; } else { $tempName = rand(0,999999).'-'.$tempName; //.$tempNameEnd; } $targetFile = str_replace('//','/',$targetPath) . $tempName; // if (in_array($fileParts['extension'],$typesArray)) { // Uncomment the following line if you want to make the directory if it doesn't exist // mkdir(str_replace('//','/',$targetPath), 0755, true); $dbTargetFile = $targetFile; $targetFile = '/srv/disk1/744444/www/example.com'.$targetFile; $success = move_uploaded_file($tempFile,$targetFile); echo str_replace($_SERVER['DOCUMENT_ROOT'],'',$targetFile); if (isset($_POST['apartmentID']) && is_numeric($_POST['apartmentID'])) { $query = 'INSERT INTO images SET ID = \''.mysql_real_escape_string($_POST['apartmentID']).'\', ImageURL = \''.$dbTargetFile.'\', InternalSupplierID = \'100\''; fwrite($fp,$query.PHP_EOL); mysql_query($query); fwrite($fp,var_export(mysql_error(),true).PHP_EOL); //security risk!! :O //can only fix if we change image uploading script $query = 'UPDATE apartments SET mainImage = \''.$dbTargetFile.'\' WHERE ID = \''.mysql_real_escape_string($_POST['apartmentID']).'\''; mysql_query($query); } // } else { // echo 'Invalid file type.'; // } } fclose($fp); ?> This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=334099.0 This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=325953.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=342919.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=333865.0 This topic has been moved to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=331097.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=328845.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=356760.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=305825.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=317014.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=346829.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=314397.0 This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=319767.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=318277.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=315910.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=309960.0 This topic has been moved to HTML Help. http://www.phpfreaks.com/forums/index.php?topic=313579.0 |